Skip to content

Commit a01304e

Browse files
committed
CLOUDSTACK-123: fix NPE
1 parent cc92a4c commit a01304e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎server/src/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,11 @@ public boolean isZoneReady(Map<Long, ZoneHostInfo> zoneHostInfoMap, long dataCen
11841184
}
11851185
} else {
11861186
if (s_logger.isDebugEnabled()) {
1187-
s_logger.debug("Zone host is ready, but console proxy template: " + template.getId() + " is not ready on secondary storage: " + secondaryStorageHost.getId());
1187+
if (secondaryStorageHost != null) {
1188+
s_logger.debug("Zone host is ready, but console proxy template: " + template.getId() + " is not ready on secondary storage: " + secondaryStorageHost.getId());
1189+
} else {
1190+
s_logger.debug("Zone host is ready, but console proxy template: " + template.getId() + " is not ready on secondary storage.");
1191+
}
11881192
}
11891193
}
11901194
}

0 commit comments

Comments
 (0)