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

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

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

Denes Bodo updated OOZIE-2940:
------------------------------
    Attachment: 0001-OOZIE-2940-Possible-NullPointerException.patch

> Possible NullPointerException
> -----------------------------
>
>                 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)