[webbeans-commits] Webbeans SVN: r3257 - ri/trunk/impl/src/main/java/org/jboss/webbeans/bean.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Sun Jul 26 15:47:31 EDT 2009
Author: pete.muir at jboss.org
Date: 2009-07-26 15:47:31 -0400 (Sun, 26 Jul 2009)
New Revision: 3257
Modified:
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/AbstractBean.java
Log:
Fix NPE
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/AbstractBean.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/AbstractBean.java 2009-07-26 19:23:33 UTC (rev 3256)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/AbstractBean.java 2009-07-26 19:47:31 UTC (rev 3257)
@@ -301,7 +301,7 @@
// TODO Merge serializable check in here
for (WBInjectionPoint<?, ?> injectionPoint : getAnnotatedInjectionPoints())
{
- if (!getScopeType().equals(Dependent.class) && injectionPoint.getType().equals(InjectionPoint.class))
+ if (!Dependent.class.equals(getScopeType()) && injectionPoint.getType().equals(InjectionPoint.class))
{
throw new DefinitionException("Cannot inject an InjectionPoint into a non @Dependent scoped bean " + injectionPoint);
}
More information about the weld-commits
mailing list