mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 10994: Fixed NPE in destroySystemVm api
status 10994: resolved fixed
This commit is contained in:
parent
ee62361250
commit
6eacc11222
@ -1174,7 +1174,10 @@ public class ApiResponseHelper implements ResponseGenerator {
|
||||
// for console proxies, add the active sessions
|
||||
if (vm.getType() == Type.ConsoleProxy) {
|
||||
ConsoleProxyVO proxy = ApiDBUtils.findConsoleProxy(vm.getId());
|
||||
vmResponse.setActiveViewerSessions(proxy.getActiveSession());
|
||||
//proxy can be already destroyed
|
||||
if (proxy != null) {
|
||||
vmResponse.setActiveViewerSessions(proxy.getActiveSession());
|
||||
}
|
||||
}
|
||||
|
||||
DataCenter zone = ApiDBUtils.findZoneById(vm.getDataCenterIdToDeployIn());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user