mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-4363: fix possible NPE, if copy volume failed.
This commit is contained in:
parent
1c96898ae1
commit
0040c4adef
|
|
@ -335,7 +335,11 @@ public class VolumeObject implements VolumeInfo {
|
|||
return this.volumeVO.getPath();
|
||||
} else {
|
||||
DataObjectInStore objInStore = this.objectInStoreMgr.findObject(this, dataStore);
|
||||
return objInStore.getInstallPath();
|
||||
if (objInStore != null) {
|
||||
return objInStore.getInstallPath();
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue