GutoVeronezi commented on a change in pull request #5841:
URL: https://github.com/apache/cloudstack/pull/5841#discussion_r780448733



##########
File path: 
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtGetStorageStatsCommandWrapper.java
##########
@@ -37,6 +37,9 @@ public Answer execute(final GetStorageStatsCommand command, 
final LibvirtComputi
         try {
             final KVMStoragePoolManager storagePoolMgr = 
libvirtComputingResource.getStoragePoolMgr();
             final KVMStoragePool sp = 
storagePoolMgr.getStoragePool(command.getPooltype(), command.getStorageId(), 
true);
+            if(null == sp) {

Review comment:
       ```suggestion
               if (null == sp) {
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to