Author: rob.stryker(a)jboss.com
Date: 2012-03-28 05:47:45 -0400 (Wed, 28 Mar 2012)
New Revision: 39861
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/ModulePublishDecorator.java
Log:
JBIDE-11422 - NPE fix
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/ModulePublishDecorator.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/ModulePublishDecorator.java 2012-03-28
09:41:07 UTC (rev 39860)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/extensions/ModulePublishDecorator.java 2012-03-28
09:47:45 UTC (rev 39861)
@@ -37,6 +37,8 @@
IServer s = ((IServerModule)element).getServer();
IModule[] m = ((IServerModule)element).getModule();
String name = m[m.length-1].getName();
+ if( s == null )
+ return false;
IStatus[] all = ServerLogger.getDefault().getLog(s);
// This really isn't the best. But I need string comparisons to know it's the
same module
Show replies by date