Author: scabanovich
Date: 2012-06-22 18:02:24 -0400 (Fri, 22 Jun 2012)
New Revision: 42183
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/CDISeamSolderDefaultBeanExtension.java
Log:
JBIDE-12246
https://issues.jboss.org/browse/JBIDE-12246
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/CDISeamSolderDefaultBeanExtension.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/CDISeamSolderDefaultBeanExtension.java 2012-06-22
21:49:26 UTC (rev 42182)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.seam.solder.core/src/org/jboss/tools/cdi/seam/solder/core/CDISeamSolderDefaultBeanExtension.java 2012-06-22
22:02:24 UTC (rev 42183)
@@ -181,6 +181,7 @@
public void validateResource(IFile file, CDICoreValidator validator) {
String defaultBeanAnnotationTypeName =
getVersion().getDefaultBeanAnnotationTypeName();
ICDIProject cdiProject = CDICorePlugin.getCDIProject(file.getProject(), true);
+ if(cdiProject == null) return;
Set<IBean> bs = cdiProject.getBeans(file.getFullPath());
for (IBean bean: bs) {
if(isBeanDefault(bean)) {