cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject svn commit: r1521008 - /cxf/branches/2.7.x-fixes/api/src/main/java/org/apache/cxf/common/util/ProxyClassLoader.java
Date Mon, 09 Sep 2013 09:15:36 GMT
Author: cschneider
Date: Mon Sep  9 09:15:35 2013
New Revision: 1521008

URL: http://svn.apache.org/r1521008
Log:
Guard against null classloader

Modified:
    cxf/branches/2.7.x-fixes/api/src/main/java/org/apache/cxf/common/util/ProxyClassLoader.java

Modified: cxf/branches/2.7.x-fixes/api/src/main/java/org/apache/cxf/common/util/ProxyClassLoader.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/api/src/main/java/org/apache/cxf/common/util/ProxyClassLoader.java?rev=1521008&r1=1521007&r2=1521008&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/api/src/main/java/org/apache/cxf/common/util/ProxyClassLoader.java
(original)
+++ cxf/branches/2.7.x-fixes/api/src/main/java/org/apache/cxf/common/util/ProxyClassLoader.java
Mon Sep  9 09:15:35 2013
@@ -31,7 +31,9 @@ public class ProxyClassLoader extends Cl
     private Set<ClassLoader> loaders = new HashSet<ClassLoader>();
 
     public void addLoader(ClassLoader loader) {
-        loaders.add(loader);
+        if (loader != null) {
+            loaders.add(loader);
+        }
     }
 
     public Class<?> findClass(String name) throws ClassNotFoundException {



Mime
View raw message