mirror of
https://github.com/apache/cloudstack
synced 2026-08-27 08:15:09 +00:00
CLOUDSTACK-5831: Fix NPE, in case the volume isn't attached to any pool
This commit is contained in:
parent
693f0c280a
commit
1f70154c34
@ -1644,6 +1644,10 @@ public class QueryManagerImpl extends ManagerBase implements QueryService {
|
||||
new VolumeJoinVO[result.first().size()]));
|
||||
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
Block a user