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

NPE in JaveActionExecutor#check()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: 4.1.0
    • Component/s: None
    • Labels:
      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.3
          1 kB
          Sreepathi Prasanna
        2. oozie-1945-patch-2
          1 kB
          Sreepathi Prasanna
        3. oozie-1945.patch.1
          1 kB
          Sreepathi Prasanna

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: