openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r802610 - /incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ExtensionLoader.java
Date Sun, 09 Aug 2009 21:17:38 GMT
Author: struberg
Date: Sun Aug  9 21:17:37 2009
New Revision: 802610

URL: http://svn.apache.org/viewvc?rev=802610&view=rev
Log:
initialize extensions with an empty map to prevent NPE.

Modified:
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ExtensionLoader.java

Modified: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ExtensionLoader.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ExtensionLoader.java?rev=802610&r1=802609&r2=802610&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ExtensionLoader.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/portable/events/ExtensionLoader.java
Sun Aug  9 21:17:37 2009
@@ -38,7 +38,7 @@
 public class ExtensionLoader
 {
     /**Map of extensions*/
-    private Map<Bean<?>, Object> extensions = null;
+    private Map<Bean<?>, Object> extensions = Collections.emptyMap();
     
     /**
      * Creates a new loader instance.



Mime
View raw message