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

Possible NullPointerException in WorkflowActionBean

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment