mirror of https://github.com/apache/cloudstack.git
bug 7308: fix NPE when downloading primarystorage
status 7308: resolved fixed
This commit is contained in:
parent
85cc68a742
commit
32e84feecc
|
|
@ -1836,12 +1836,13 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
|||
}
|
||||
|
||||
if (secondaryPool != null) {
|
||||
synchronized (getStoragePool(secondaryPool.getUUIDString())) {
|
||||
String uuid = secondaryPool.getUUIDString();
|
||||
synchronized (getStoragePool(uuid)) {
|
||||
secondaryPool.destroy();
|
||||
secondaryPool.undefine();
|
||||
secondaryPool.free();
|
||||
}
|
||||
rmStoragePool(secondaryPool.getUUIDString());
|
||||
rmStoragePool(uuid);
|
||||
}
|
||||
} catch (LibvirtException l) {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue