提交 fc1c8cbe 编写于 作者: S sgabdura

8048050: Agent NullPointerException when rmi.port in use

Reviewed-by: jbachorik, dfuchs
上级 9fd1d3c8
...@@ -767,7 +767,7 @@ public final class ConnectorBootstrap { ...@@ -767,7 +767,7 @@ public final class ConnectorBootstrap {
JMXConnectorServerFactory.newJMXConnectorServer(url, env, mbs); JMXConnectorServerFactory.newJMXConnectorServer(url, env, mbs);
connServer.start(); connServer.start();
} catch (IOException e) { } catch (IOException e) {
if (connServer == null) { if (connServer == null || connServer.getAddress() == null) {
throw new AgentConfigurationError(CONNECTOR_SERVER_IO_ERROR, throw new AgentConfigurationError(CONNECTOR_SERVER_IO_ERROR,
e, url.toString()); e, url.toString());
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册