CID-1251369: not null check changed to null check

This commit is contained in:
Daan Hoogland 2014-11-11 09:32:09 +01:00
parent 18091e9642
commit d2f28ea3ae
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ public class SnapshotManagerImpl extends ManagerBase implements SnapshotManager,
_accountMgr.checkAccess(CallContext.current().getCallingAccount(), null, true, volume);
SnapshotInfo snapshot = snapshotFactory.getSnapshot(snapshotId, DataStoreRole.Primary);
if(snapshot != null)
if(snapshot == null)
{
s_logger.debug("Failed to create snapshot");
throw new CloudRuntimeException("Failed to create snapshot");