Author: snjeza
Date: 2009-09-02 17:34:39 -0400 (Wed, 02 Sep 2009)
New Revision: 17431
Modified:
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/configurators/SeamProjectConfigurator.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4841 SeamProjectConfigurator throws an NPE when
application.xml doesn't exist in EAR project
Modified:
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/configurators/SeamProjectConfigurator.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/configurators/SeamProjectConfigurator.java 2009-09-02
21:29:09 UTC (rev 17430)
+++
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/configurators/SeamProjectConfigurator.java 2009-09-02
21:34:39 UTC (rev 17431)
@@ -579,6 +579,9 @@
earArtifactEdit = EARArtifactEdit.getEARArtifactEditForWrite(project);
if(earArtifactEdit!=null) {
Application application = earArtifactEdit.getApplication();
+ if (application == null) {
+ return;
+ }
EList modules = application.getModules();
for (Iterator iterator = modules.iterator(); iterator.hasNext();) {
Object object = iterator.next();