Author: rob.stryker(a)jboss.com
Date: 2009-12-17 14:56:58 -0500 (Thu, 17 Dec 2009)
New Revision: 19449
Modified:
branches/jbosstools-3.1.0.RC1/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServer.java
Log:
NPE check
Modified:
branches/jbosstools-3.1.0.RC1/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServer.java
===================================================================
---
branches/jbosstools-3.1.0.RC1/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServer.java 2009-12-17
19:53:42 UTC (rev 19448)
+++
branches/jbosstools-3.1.0.RC1/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/DeployableServer.java 2009-12-17
19:56:58 UTC (rev 19449)
@@ -165,9 +165,12 @@
}
public IJBossServerRuntime getRuntime() {
- IJBossServerRuntime ajbsrt = (IJBossServerRuntime) getServer().getRuntime()
+ IJBossServerRuntime ajbsrt = null;
+ if( getServer().getRuntime() != null ) {
+ ajbsrt = (IJBossServerRuntime) getServer().getRuntime()
.loadAdapter(IJBossServerRuntime.class,
new NullProgressMonitor());
+ }
return ajbsrt;
}
Show replies by date