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

Possible NullPointerException in WorkflowActionBean

    XMLWordPrintableJSON

Details

    Description

      Hi.

      In this code:

              if (status == null || (status != Status.OK && status != Status.ERROR && status != Status.KILLED)) {
                  throw new IllegalArgumentException("Action status must be OK, ERROR or KILLED. Received ["
                          + status.toString() + "]");
              }
      

      if status is null, status.toString() will be executed, so NullPointerException will be throw.

      This possible defect found by AppChecker.

      Attachments

        Activity

          People

            dionusos Dénes Bodó
            AppChecker AppChecker
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: