mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Bug 7860: protected from NPE whhile console proxy public address is not set during startup process
This commit is contained in:
parent
e488c53c0d
commit
496bbeba88
@ -311,6 +311,11 @@ public class ConsoleProxyManagerImpl implements ConsoleProxyManager, ConsoleProx
|
||||
return null;
|
||||
}
|
||||
|
||||
if(proxy.getPublicIpAddress() == null) {
|
||||
s_logger.warn("Assigned console proxy does not have a valid public IP address");
|
||||
return null;
|
||||
}
|
||||
|
||||
return new ConsoleProxyInfo(proxy.isSslEnabled(), proxy.getPublicIpAddress(), _consoleProxyPort, proxy.getPort(), _configDao.getValue("consoleproxy.url.domain"));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user