Skip to content

Commit 904ea6f

Browse files
nvazquezdhslove
authored andcommitted
kvm: Fix NPE in case host UEFI detail is not set on agent connection (apache#11610)
1 parent 490f2ff commit 904ea6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/orchestration/src/main/java/com/cloud/agent/manager/AgentManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ protected AgentAttache notifyMonitorsOfConnection(final AgentAttache attache, fi
812812
if (ObjectUtils.anyNotNull(uefiEnabled, virtv2vVersion, ovftoolVersion)) {
813813
_hostDao.loadDetails(host);
814814
boolean updateNeeded = false;
815-
if (!uefiEnabled.equals(host.getDetails().get(Host.HOST_UEFI_ENABLE))) {
815+
if (StringUtils.isNotBlank(uefiEnabled) && !uefiEnabled.equals(host.getDetails().get(Host.HOST_UEFI_ENABLE))) {
816816
host.getDetails().put(Host.HOST_UEFI_ENABLE, uefiEnabled);
817817
updateNeeded = true;
818818
}

0 commit comments

Comments
 (0)