openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r802623 - /incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java
Date Sun, 09 Aug 2009 22:59:27 GMT
Author: struberg
Date: Sun Aug  9 22:59:27 2009
New Revision: 802623

URL: http://svn.apache.org/viewvc?rev=802623&view=rev
Log:
OWB-129 skip disposal function if no producer method has been found yet

Modified:
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java

Modified: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java?rev=802623&r1=802622&r2=802623&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java
Sun Aug  9 22:59:27 2009
@@ -778,6 +778,9 @@
             }
 
             Set<Bean<?>> set = InjectionResolver.getInstance().implResolveByType(type,
annot);
+            if (set == null || set.isEmpty()) {
+                continue;
+            }
             Bean<?> bean = set.iterator().next();
             ProducerMethodBean<?> pr = null;
 



Mime
View raw message