diff --git a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java index eaf95e6aee1..5bc71439df5 100755 --- a/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java +++ b/server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java @@ -262,7 +262,7 @@ public class SnapshotManagerImpl implements SnapshotManager, SnapshotService, Ma // Update the snapshot in the database if ((answer != null) && answer.getResult()) { // The snapshot was successfully created - if (preSnapshotPath != null && preSnapshotPath == answer.getSnapshotPath()) { + if (preSnapshotPath != null && preSnapshotPath.equals(answer.getSnapshotPath())) { // empty snapshot s_logger.debug("CreateSnapshot: this is empty snapshot "); snapshot.setPath(preSnapshotPath);