8048050: Agent NullPointerException when rmi.port in use

Reviewed-by: jbachorik, dfuchs
This commit is contained in:
Sergey Gabdurakhmanov 2014-11-17 13:11:37 +01:00
parent fb6b965e86
commit f30ba73e16

View File

@ -767,7 +767,7 @@ public final class ConnectorBootstrap {
JMXConnectorServerFactory.newJMXConnectorServer(url, env, mbs);
connServer.start();
} catch (IOException e) {
if (connServer == null) {
if (connServer == null || connServer.getAddress() == null) {
throw new AgentConfigurationError(CONNECTOR_SERVER_IO_ERROR,
e, url.toString());
} else {