Skip to content

Commit 036fd00

Browse files
authored
kvm: Fix NPE in case host UEFI detail is not set on agent connection (#11610)
1 parent e64e94a commit 036fd00

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
@@ -710,7 +710,7 @@ protected AgentAttache notifyMonitorsOfConnection(final AgentAttache attache, fi
710710
if (ObjectUtils.anyNotNull(uefiEnabled, virtv2vVersion, ovftoolVersion)) {
711711
_hostDao.loadDetails(host);
712712
boolean updateNeeded = false;
713-
if (!uefiEnabled.equals(host.getDetails().get(Host.HOST_UEFI_ENABLE))) {
713+
if (StringUtils.isNotBlank(uefiEnabled) && !uefiEnabled.equals(host.getDetails().get(Host.HOST_UEFI_ENABLE))) {
714714
host.getDetails().put(Host.HOST_UEFI_ENABLE, uefiEnabled);
715715
updateNeeded = true;
716716
}

0 commit comments

Comments
 (0)