mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-05 13:40:18 +00:00
8048050: Agent NullPointerException when rmi.port in use
Reviewed-by: jbachorik, dfuchs
This commit is contained in:
parent
fb6b965e86
commit
f30ba73e16
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user