You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2013/02/27 18:48:01 UTC

svn commit: r1450880 - /cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/EndpointImpl.java

Author: dkulp
Date: Wed Feb 27 17:48:01 2013
New Revision: 1450880

URL: http://svn.apache.org/r1450880
Log:
[CXF-4856] Fix a NPE for java first cases.

Modified:
    cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/EndpointImpl.java

Modified: cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/EndpointImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/EndpointImpl.java?rev=1450880&r1=1450879&r2=1450880&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/EndpointImpl.java (original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/EndpointImpl.java Wed Feb 27 17:48:01 2013
@@ -337,7 +337,7 @@ public class EndpointImpl extends javax.
                 if (!endpointInfo.getAddress().contains(addr)) {
                     endpointInfo.setAddress(addr);
                 }
-                if (publishedEndpointUrl != null) {
+                if (publishedEndpointUrl != null && wsdlLocation != null) {
                     endpointInfo.setProperty(WSDLGetUtils.PUBLISHED_ENDPOINT_URL, publishedEndpointUrl);
                     //early update the publishedEndpointUrl so that endpoints in the same app sharing the same wsdl
                     //do not require all of them to be queried for wsdl before the wsdl is finally fully updated