mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-5831: Fix NPE, in case the volume isn't attached to any pool
This commit is contained in:
parent
4584d5c845
commit
36efe4dbf4
|
|
@ -1642,6 +1642,10 @@ public class QueryManagerImpl extends ManagerBase implements QueryService {
|
|||
|
||||
for(VolumeResponse vr : volumeResponses) {
|
||||
String poolId = vr.getStoragePoolId();
|
||||
if (poolId == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
DataStore store = dataStoreManager.getPrimaryDataStore(poolId);
|
||||
if (store == null) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in New Issue