You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "AppChecker (JIRA)" <ji...@apache.org> on 2017/06/12 21:50:00 UTC
[jira] [Created] (OOZIE-2940) Possible NullPointerException
AppChecker created OOZIE-2940:
---------------------------------
Summary: 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
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)