Author: rob.stryker(a)jboss.com
Date: 2007-09-21 13:40:42 -0400 (Fri, 21 Sep 2007)
New Revision: 3761
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/ModuleViewProvider.java
Log:
null check
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/ModuleViewProvider.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/ModuleViewProvider.java 2007-09-21
17:38:07 UTC (rev 3760)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/views/server/providers/ModuleViewProvider.java 2007-09-21
17:40:42 UTC (rev 3761)
@@ -252,8 +252,10 @@
Properties props = new Properties();
if( selected != null && selected instanceof ModuleServer) {
IModule mod = ((ModuleServer)selected).module[0];
- props.setProperty(Messages.ModulePropertyType, mod.getModuleType().getId());
- props.setProperty(Messages.ModulePropertyProject, mod.getProject().getName());
+ if( mod != null && mod.getProject() != null ) {
+ props.setProperty(Messages.ModulePropertyType, mod.getModuleType().getId());
+ props.setProperty(Messages.ModulePropertyProject, mod.getProject().getName());
+ }
}
return props;
}