Bug 13836: NPE fix. If snapshot is already removed say so-do not try and delete it again.

Reviewed-By: Kishan
This commit is contained in:
Nitin Mehta 2012-02-17 16:34:17 +05:30
parent eda778e24c
commit 26e4de22fe
1 changed files with 1 additions and 1 deletions

View File

@ -741,7 +741,7 @@ public class SnapshotManagerImpl implements SnapshotManager, SnapshotService, Ma
Account caller = UserContext.current().getCaller();
// Verify parameters
Snapshot snapshotCheck = _snapshotDao.findByIdIncludingRemoved(snapshotId);
Snapshot snapshotCheck = _snapshotDao.findById(snapshotId);
if (snapshotCheck == null) {
throw new InvalidParameterValueException("unable to find a snapshot with id " + snapshotId);
}