openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1630005 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
Date Wed, 08 Oct 2014 05:20:13 GMT
Author: struberg
Date: Wed Oct  8 05:20:13 2014
New Revision: 1630005

URL: http://svn.apache.org/r1630005
Log:
OWB-1023 throw Exception if validate(InjectionPoint) parameter is null 


Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java?rev=1630005&r1=1630004&r2=1630005&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
Wed Oct  8 05:20:13 2014
@@ -1130,6 +1130,11 @@ public class BeanManagerImpl implements 
     @Override
     public void validate(InjectionPoint injectionPoint)
     {
+        if (injectionPoint == null)
+        {
+            throw new IllegalArgumentException("InjectionPoint parameter must not be nul");
+        }
+
         Bean<?> bean = injectionPoint.getBean();
 
         //Check for correct injection type



Mime
View raw message