mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-18 03:23:45 +01:00
CLOUDSTACK-4507: fix NPE when taking snapshot
This commit is contained in:
parent
f4dbf8786f
commit
aa59b6f34d
@ -265,7 +265,7 @@ public class SnapshotObject implements SnapshotInfo {
|
||||
this.snapshotStoreDao.update(snapshotStore.getId(), snapshotStore);
|
||||
|
||||
// update side-effect of snapshot operation
|
||||
if(snapshotTO.getVolume().getPath() != null) {
|
||||
if(snapshotTO.getVolume() != null && snapshotTO.getVolume().getPath() != null) {
|
||||
VolumeVO vol = this.volumeDao.findByUuid(snapshotTO.getVolume().getUuid());
|
||||
if(vol != null) {
|
||||
s_logger.info("Update volume path change due to snapshot operation, volume " + vol.getId() + " path: "
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user