mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
fix NPE in put primary storage into maintainance mode
This commit is contained in:
parent
b0d6403369
commit
79f5ece7dc
@ -2808,7 +2808,7 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager
|
||||
|
||||
@Override
|
||||
public void finalizeStop(VirtualMachineProfile<UserVmVO> profile, StopAnswer answer) {
|
||||
if("VM does not exist".equals(answer.getDetails())){
|
||||
if(answer != null && "VM does not exist".equals(answer.getDetails())){
|
||||
// Stop answer returns true when Vm does not exist.
|
||||
// This is a hack to avoid logging usage events
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user