cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1182786 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/osgi/OSGiExtensionLocator.java
Date Thu, 13 Oct 2011 11:20:31 GMT
Author: dkulp
Date: Thu Oct 13 11:20:31 2011
New Revision: 1182786

URL: http://svn.apache.org/viewvc?rev=1182786&view=rev
Log:
Add an NPE guard

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/osgi/OSGiExtensionLocator.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/osgi/OSGiExtensionLocator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/osgi/OSGiExtensionLocator.java?rev=1182786&r1=1182785&r2=1182786&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/osgi/OSGiExtensionLocator.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/osgi/OSGiExtensionLocator.java Thu
Oct 13 11:20:31 2011
@@ -71,6 +71,9 @@ public class OSGiExtensionLocator implem
             = new ConcurrentHashMap<String, OSGiAutomaticWorkQueue>();
 
         public void updated(Dictionary d) throws ConfigurationException {
+            if (d == null) {
+                return;
+            }
             String s = (String)d.get("org.apache.cxf.workqueue.names");
             if (s != null) {
                 String s2[] = s.split(",");



Mime
View raw message