changeset 7744:1c3c47064b5c

8048050: Agent NullPointerException when rmi.port in use Reviewed-by: jbachorik, dfuchs
author sgabdura
date Mon, 17 Nov 2014 13:11:37 +0100
parents f8b3811337b7
children d4bd8bd71ca7
files src/share/classes/sun/management/jmxremote/ConnectorBootstrap.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/management/jmxremote/ConnectorBootstrap.java	Tue Jan 13 18:11:54 2015 +0000
+++ b/src/share/classes/sun/management/jmxremote/ConnectorBootstrap.java	Mon Nov 17 13:11:37 2014 +0100
@@ -777,7 +777,7 @@
                     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 {