mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-7563: Fix potential NPE in checking answer
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
4c21172f3b
commit
d42e3df9cf
@ -1247,7 +1247,8 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac
|
||||
_resourceMgr.updateGPUDetails(vm.getHostId(), gpuDevice.getGroupDetails());
|
||||
}
|
||||
if (answer == null || !answer.getResult()) {
|
||||
s_logger.debug("Unable to stop VM due to " + answer.getDetails());
|
||||
String details = (answer != null) ? answer.getDetails() : "null answer returned";
|
||||
s_logger.debug("Unable to stop VM due to " + details);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user