cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject cxf git commit: [CXF-6257] Creating and Endpoint using JAX-WS API, getting the binding and then publishing causes a NullPointerException
Date Thu, 26 Mar 2015 15:31:19 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes d84a45645 -> c1b47bb8d


[CXF-6257] Creating and Endpoint using JAX-WS API, getting the binding and then publishing
causes a NullPointerException


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/c1b47bb8
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/c1b47bb8
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/c1b47bb8

Branch: refs/heads/3.0.x-fixes
Commit: c1b47bb8d3b38aba7cbfe8a6e4261e2c3214842e
Parents: d84a456
Author: Akitoshi Yoshida <ay@apache.org>
Authored: Thu Mar 26 16:27:29 2015 +0100
Committer: Akitoshi Yoshida <ay@apache.org>
Committed: Thu Mar 26 16:28:57 2015 +0100

----------------------------------------------------------------------
 core/src/main/java/org/apache/cxf/service/model/EndpointInfo.java  | 2 +-
 .../jaxws/src/main/java/org/apache/cxf/jaxws/EndpointImpl.java     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/c1b47bb8/core/src/main/java/org/apache/cxf/service/model/EndpointInfo.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/cxf/service/model/EndpointInfo.java b/core/src/main/java/org/apache/cxf/service/model/EndpointInfo.java
index 5ad335f..64a0d77 100644
--- a/core/src/main/java/org/apache/cxf/service/model/EndpointInfo.java
+++ b/core/src/main/java/org/apache/cxf/service/model/EndpointInfo.java
@@ -89,7 +89,7 @@ public class EndpointInfo extends AbstractDescriptionElement implements
NamedIte
     }    
     
     public String getAddress() {
-        return (null != address) ? address.getAddress().getValue() : null;
+        return (null != address && null != address.getAddress()) ? address.getAddress().getValue()
: null;
     }
     
     public void setAddress(String addr) {

http://git-wip-us.apache.org/repos/asf/cxf/blob/c1b47bb8/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/EndpointImpl.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/EndpointImpl.java b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/EndpointImpl.java
index db1fe82..6bcdf41 100644
--- a/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/EndpointImpl.java
+++ b/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/EndpointImpl.java
@@ -334,7 +334,7 @@ public class EndpointImpl extends javax.xml.ws.Endpoint
             serv = getServer(addr);
             if (addr != null) {            
                 EndpointInfo endpointInfo = serv.getEndpoint().getEndpointInfo();
-                if (!endpointInfo.getAddress().contains(addr)) {
+                if (endpointInfo.getAddress() == null || !endpointInfo.getAddress().contains(addr))
{
                     endpointInfo.setAddress(addr);
                 }
                 if (publishedEndpointUrl != null) {


Mime
View raw message