Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-1945

NPE in JaveActionExecutor#check()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • trunk
    • 4.1.0
    • None
    • None

    Description

      in method check()

       String errorCode = props.getProperty("error.code");
                                  if (errorCode.equals("0")) {
                                      errorCode = "JA018";
                                  }
                                  if (errorCode.equals("-1")) {
                                      errorCode = "JA019";
                                  }
                                  errorReason = props.getProperty("error.reason");
      

      if error.code is null, these leads to NPEs
      easy fix

      if ("0".equals(errorCode))
      ...
      

      Attachments

        1. oozie-1945-patch-2
          1 kB
          Sreepathi Prasanna
        2. OOZIE-1945-patch.3
          1 kB
          Sreepathi Prasanna
        3. oozie-1945.patch.1
          1 kB
          Sreepathi Prasanna

        Activity

          People

            sree2k Sreepathi Prasanna
            chitnis Mona Chitnis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: