Author: mculpepper(a)jboss.com
Date: 2007-07-12 17:08:33 -0400 (Thu, 12 Jul 2007)
New Revision: 2414
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/packages/ArchivesModelModuleContributor.java
Log:
added a null check for "mods" .. if it's null, the module creation step
never happens for new projects / new packages
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/packages/ArchivesModelModuleContributor.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/packages/ArchivesModelModuleContributor.java 2007-07-12
17:19:28 UTC (rev 2413)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/packages/ArchivesModelModuleContributor.java 2007-07-12
21:08:33 UTC (rev 2414)
@@ -84,11 +84,14 @@
ArrayList mods = (ArrayList)projectToModules.get(projectLoc);
IModule mod;
IArchive arc;
- for( Iterator i = mods.iterator(); i.hasNext();) {
- mod = (IModule)i.next();
- arc = ((PackagedModuleDelegate)moduleDelegates.get(mod)).getPackage();
- packageToModule.remove(arc);
- moduleDelegates.remove(mod);
+ if (mods != null)
+ {
+ for( Iterator i = mods.iterator(); i.hasNext();) {
+ mod = (IModule)i.next();
+ arc = ((PackagedModuleDelegate)moduleDelegates.get(mod)).getPackage();
+ packageToModule.remove(arc);
+ moduleDelegates.remove(mod);
+ }
}
createModules(findProject(projectLoc));
factory.clearModuleCache();
Show replies by date