mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-5831: Fix NPE, in case the volume isn't attached to any pool
This commit is contained in:
parent
7c04aa6115
commit
d4c7574f12
@ -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…
x
Reference in New Issue
Block a user