You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Peter Cseh (JIRA)" <ji...@apache.org> on 2017/08/15 09:48:00 UTC

[jira] [Updated] (OOZIE-2940) Possible NullPointerException in WorkflowActionBean

     [ https://issues.apache.org/jira/browse/OOZIE-2940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Cseh updated OOZIE-2940:
------------------------------
    Summary: Possible NullPointerException in WorkflowActionBean  (was: Possible NullPointerException)

> Possible NullPointerException in WorkflowActionBean
> ---------------------------------------------------
>
>                 Key: OOZIE-2940
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2940
>             Project: Oozie
>          Issue Type: Bug
>          Components: workflow
>    Affects Versions: 4.3.0
>            Reporter: AppChecker
>            Assignee: Denes Bodo
>              Labels: appchecker, static-analysis
>         Attachments: 0001-OOZIE-2940-Possible-NullPointerException.patch
>
>
> Hi.
> In [this code|https://github.com/apache/oozie/blob/eb168360c550943828d9fe2c7bfdcd4f5e830003/core/src/main/java/org/apache/oozie/WorkflowActionBean.java#L600]:
> {code:java}
>         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() + "]");
>         }
> {code}
> if status is null, status.toString() will be executed, so NullPointerException will be throw.
> This possible defect found by [AppChecker|https://npo-echelon.ru/en/solutions/appchecker.php].



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)