Author: scabanovich
Date: 2010-03-04 08:36:46 -0500 (Thu, 04 Mar 2010)
New Revision: 20661
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5976
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2010-03-04
13:33:09 UTC (rev 20660)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java 2010-03-04
13:36:46 UTC (rev 20661)
@@ -851,7 +851,7 @@
ISeamXmlComponentDeclaration[] xds = oc.getXmlDeclarations().toArray(new
ISeamXmlComponentDeclaration[0]);
for (ISeamXmlComponentDeclaration x: xds) {
String n = x.getName();
- if(loadedClassName.equals(x.getClassName()) && (n == null || n.length() ==
0)) {
+ if(loadedClassName != null && loadedClassName.equals(x.getClassName())
&& (n == null || n.length() == 0)) {
old.put(((SeamXmlComponentDeclaration)x).getId(), x);
nameless.add(x);
}