[
https://issues.apache.org/jira/browse/OOZIE-2462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15245186#comment-15245186
]
abhishek bafna commented on OOZIE-2462:
---------------------------------------
+1 (non-binding)
> When calling ParamChecker.notNull() in CoordActionsIgnoreXCommand.java,
> "Action" should be passed instead of "Action cannot be null".
> -------------------------------------------------------------------------------------------------------------------------------------
>
> Key: OOZIE-2462
> URL: https://issues.apache.org/jira/browse/OOZIE-2462
> Project: Oozie
> Issue Type: Bug
> Reporter: Manjunath Ballur
> Priority: Trivial
> Labels: newbie
> Attachments: OOZIE-2462-001.patch, OOZIE-2462-002.patch,
> OOZIE-2462-002.patch
>
>
> In ParamChecker::notNull() method, if the passed object is null, then
> following exception is thrown:
> if (obj == null) {
> throw new IllegalArgumentException(name + " cannot be null");
> }
> Here, "name" is the name of the object being checked.
> In "CoordActionsIgnoreXCommand::checkAllActionsStatus()" method, following
> piece of code calls "ParamChecker::notNull()" method:
> ParamChecker.notNull(action, "Action cannot be null");
> The above statement should be changed to:
> ParamChecker.notNull(action, "Action");
> With the current code, when "action" is null, then the message printed will
> be:
> "Action cannot be null cannot be null"
> "cannot be null" is printed twice.
> Hence, we need to remove "cannot be null" while calling
> "ParamChecker::notNull()" method.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)