mirror of https://github.com/apache/cloudstack.git
Fix findbugs RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE in VmWorkJobDispatcher.java Assert isn't used in prod runtime, null is properly checked in method
Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com> This closes #446
This commit is contained in:
parent
d056c3d279
commit
a2129b2940
|
|
@ -71,7 +71,6 @@ public class VmWorkJobDispatcher extends AdapterBase implements AsyncJobDispatch
|
|||
}
|
||||
|
||||
work = VmWorkSerializer.deserialize(workClz, job.getCmdInfo());
|
||||
assert(work != null);
|
||||
if(work == null) {
|
||||
s_logger.error("Unable to deserialize VM work " + job.getCmd() + ", job info: " + job.getCmdInfo() + ", job origin: " + job.getRelated());
|
||||
_asyncJobMgr.completeAsyncJob(job.getId(), JobInfo.Status.FAILED, 0, "Unable to deserialize VM work");
|
||||
|
|
|
|||
Loading…
Reference in New Issue