We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 422235c commit df92a45Copy full SHA for df92a45
server/src/com/cloud/resource/ResourceManagerImpl.java
@@ -2080,7 +2080,7 @@ private boolean doCancelMaintenance(long hostId) {
2080
_haMgr.cancelScheduledMigrations(host);
2081
List<VMInstanceVO> vms = _haMgr.findTakenMigrationWork();
2082
for (VMInstanceVO vm : vms) {
2083
- if (vm.getHostId() != null && vm.getHostId() == hostId) {
+ if (vm != null && vm.getHostId() != null && vm.getHostId() == hostId) {
2084
s_logger.info("Unable to cancel migration because the vm is being migrated: " + vm);
2085
return false;
2086
}
0 commit comments