Author: rob.stryker(a)jboss.com
Date: 2012-03-29 00:23:44 -0400 (Thu, 29 Mar 2012)
New Revision: 39904
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/modules/ResourceModuleResourceUtil.java
Log:
NPE on deleted module
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/modules/ResourceModuleResourceUtil.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/modules/ResourceModuleResourceUtil.java 2012-03-28
21:42:58 UTC (rev 39903)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/modules/ResourceModuleResourceUtil.java 2012-03-29
04:23:44 UTC (rev 39904)
@@ -216,6 +216,9 @@
*/
private static String[] getProjectIncludesExcludes(IModule module) {
IProject p = module.getProject();
+ if( p == null )
+ return new String[]{null, null};
+
IVirtualComponent vc = ComponentCore.createComponent(p);
Properties props = vc.getMetaProperties();
String exclusionPatterns = getPatternValue(props, COMPONENT_EXCLUSIONS_PATTERN);
Show replies by date