cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r589533 - /incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf/resource/ClassLoaderResolver.java
Date Mon, 29 Oct 2007 07:36:57 GMT
Author: ningjiang
Date: Mon Oct 29 00:36:56 2007
New Revision: 589533

URL: http://svn.apache.org/viewvc?rev=589533&view=rev
Log:
Quick fix for my last commit

Modified:
    incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf/resource/ClassLoaderResolver.java

Modified: incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf/resource/ClassLoaderResolver.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf/resource/ClassLoaderResolver.java?rev=589533&r1=589532&r2=589533&view=diff
==============================================================================
--- incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf/resource/ClassLoaderResolver.java
(original)
+++ incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf/resource/ClassLoaderResolver.java
Mon Oct 29 00:36:56 2007
@@ -35,7 +35,7 @@
     }
  
     public <T> T resolve(String resourceName, Class<T> resourceType) {
-        if (resourceName == null) {
+        if (resourceName == null || resourceType == null) {
             return null;
         }
         URL url = loader.getResource(resourceName);



Mime
View raw message