Author: scabanovich
Date: 2010-06-17 05:19:25 -0400 (Thu, 17 Jun 2010)
New Revision: 22849
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java
Log:
https://jira.jboss.org/browse/JBIDE-6474
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2010-06-17
09:16:59 UTC (rev 22848)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2010-06-17
09:19:25 UTC (rev 22849)
@@ -996,7 +996,7 @@
* 5.5.7. Injection point metadata
* - bean that declares any scope other than @Dependent has an injection point of
type InjectionPoint and qualifier @Default
*/
- IType type = injection.getType().getType();
+ IType type = injection.getType() == null ? null : injection.getType().getType();
if(type!=null &&
CDIConstants.INJECTIONPOINT_TYPE_NAME.equals(type.getFullyQualifiedName())) {
IScope beanScope = injection.getClassBean().getScope();
if(injection.hasDefaultQualifier() && beanScope!=null &&
!CDIConstants.DEPENDENT_ANNOTATION_TYPE_NAME.equals(beanScope.getSourceType().getFullyQualifiedName()))
{