mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CID-1261666 added null check
This commit is contained in:
parent
5251fb2dc3
commit
2c9cc1ecde
@ -161,7 +161,7 @@ public class XcpServerDiscoverer extends DiscovererBase implements Discoverer, L
|
|||||||
PoolPatch poolPatch = PoolPatch.getByUuid(conn, hotFixUuid);
|
PoolPatch poolPatch = PoolPatch.getByUuid(conn, hotFixUuid);
|
||||||
for(HostPatch patch : patches) {
|
for(HostPatch patch : patches) {
|
||||||
PoolPatch pp = patch.getPoolPatch(conn);
|
PoolPatch pp = patch.getPoolPatch(conn);
|
||||||
if (pp.equals(poolPatch) && patch.getApplied(conn)) {
|
if (pp != null && pp.equals(poolPatch) && patch.getApplied(conn)) {
|
||||||
s_logger.debug("host " + hostIp + " does have " + hotFixUuid +" Hotfix.");
|
s_logger.debug("host " + hostIp + " does have " + hotFixUuid +" Hotfix.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user