Author: scabanovich
Date: 2011-10-19 19:11:58 -0400 (Wed, 19 Oct 2011)
New Revision: 35828
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java
Log:
JBIDE-9951
https://issues.jboss.org/browse/JBIDE-9951
Null pointer fixed.
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java 2011-10-19
23:08:06 UTC (rev 35827)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java 2011-10-19
23:11:58 UTC (rev 35828)
@@ -876,19 +876,19 @@
}
}
}
- }
- for (IProject p: ResourcesPlugin.getWorkspace().getRoot().getProjects()) {
- if(p.isAccessible()) {
- CDICorePlugin.getCDI(p, true);
+ for (IProject p: ResourcesPlugin.getWorkspace().getRoot().getProjects()) {
+ if(p.isAccessible()) {
+ CDICorePlugin.getCDI(p, true);
+ }
}
- }
- CDICoreNature[] ns = getNature().getAllDependentProjects();
- for (CDICoreNature n: ns) {
- if(n.getDelegate() instanceof CDIProject) {
- CDIProject p = (CDIProject)n.getDelegate();
- for (IBean b: p.getDeclaredBeans()) {
- if(b instanceof IClassBean) {
- collectObserverMethods((IClassBean)b, eventType, injectionPoint, result);
+ CDICoreNature[] ns = getNature().getAllDependentProjects();
+ for (CDICoreNature n: ns) {
+ if(n.getDelegate() instanceof CDIProject) {
+ CDIProject p = (CDIProject)n.getDelegate();
+ for (IBean b: p.getDeclaredBeans()) {
+ if(b instanceof IClassBean) {
+ collectObserverMethods((IClassBean)b, eventType, injectionPoint, result);
+ }
}
}
}
@@ -907,7 +907,7 @@
result.add(m);
}
}
- }
+ }
}
/**