Author: rob.stryker(a)jboss.com
Date: 2010-12-14 09:36:21 -0500 (Tue, 14 Dec 2010)
New Revision: 27447
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/jmx/JBossServerConnectionProvider.java
Log:
JBIDE-7850 - seems to happen if jmx is not installed
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/jmx/JBossServerConnectionProvider.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/jmx/JBossServerConnectionProvider.java 2010-12-14
14:30:34 UTC (rev 27446)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/jmx/JBossServerConnectionProvider.java 2010-12-14
14:36:21 UTC (rev 27447)
@@ -46,9 +46,9 @@
// If the connection doesn't exist, make a new one
public static void run(IServer s, IJMXRunnable r) throws JMXException {
JBossServerConnection c = getConnection(s);
- if( c == null )
- c = getConnection(s);
- c.run(r);
+ if( c != null )
+ // JMX is not installed here
+ c.run(r);
}