cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r948907 - /cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java
Date Thu, 27 May 2010 16:49:18 GMT
Author: dkulp
Date: Thu May 27 16:49:17 2010
New Revision: 948907

URL: http://svn.apache.org/viewvc?rev=948907&view=rev
Log:
[CXF-2830] Add NPE guard to EndpointReferenceUtils
Patch from Chris Nelson applied

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java?rev=948907&r1=948906&r2=948907&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java Thu May 27
16:49:17 2010
@@ -161,7 +161,7 @@ public final class EndpointReferenceUtil
                 impl.setByteStream(new ByteArrayInputStream(ds));
                 done.add(newId + ":" + namespaceURI);
             }
-            if (impl == null && bus != null) {
+            if (impl == null && bus != null && systemId != null) {
                 ResourceManager rm = bus.getExtension(ResourceManager.class);
                 URL url = rm == null ? null : rm.resolveResource(systemId, URL.class);
                 if (url != null) {



Mime
View raw message