Description
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.