Skip to content
Permalink
Browse files
[CXF-5476] Add an NPE guard
git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1559242 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
dkulp committed Jan 17, 2014
1 parent 1f60c6b commit 508ed233f535fb4f6187a7369aa4360599b27361
Showing 1 changed file with 3 additions and 1 deletion.
@@ -270,7 +270,9 @@ private JaxWsClientEndpointImpl getJaxwsEndpoint(QName portName, AbstractService

//When the dispatch is created from EPR, the EPR's address will be set in portInfo
PortInfoImpl portInfo = getPortInfo(portName);
if (portInfo != null && !portInfo.getAddress().equals(ei.getAddress())) {
if (portInfo != null
&& portInfo.getAddress() != null
&& !portInfo.getAddress().equals(ei.getAddress())) {
ei.setAddress(portInfo.getAddress());
}

0 comments on commit 508ed23

Please sign in to comment.