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 bf17f64 commit 98b416bCopy full SHA for 98b416b
server/src/com/cloud/resource/ResourceManagerImpl.java
@@ -2107,7 +2107,7 @@ private boolean doCancelMaintenance(long hostId) {
2107
_haMgr.cancelScheduledMigrations(host);
2108
List<VMInstanceVO> vms = _haMgr.findTakenMigrationWork();
2109
for (VMInstanceVO vm : vms) {
2110
- if (vm.getHostId() != null && vm.getHostId() == hostId) {
+ if (vm != null && vm.getHostId() != null && vm.getHostId() == hostId) {
2111
s_logger.info("Unable to cancel migration because the vm is being migrated: " + vm);
2112
return false;
2113
}
0 commit comments