TUSCANY-3732 Fix potential NPE in JAXWSServiceBindingProvider
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1024307 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d3979a0483
commit
d2f1ac6aba
1 changed files with 2 additions and 1 deletions
|
@ -112,8 +112,9 @@ public class JAXWSServiceBindingProvider implements ServiceBindingProvider {
|
|||
wsBinding.getPort().getName());
|
||||
properties.put(Endpoint.WSDL_PORT, portName);
|
||||
|
||||
QName bindingServiceName = wsBinding.getServiceName() == null ? wsBinding.getService().getQName() : wsBinding.getServiceName();
|
||||
QName serviceName = new QName(targetNamespace,
|
||||
wsBinding.getServiceName().getLocalPart());
|
||||
bindingServiceName.getLocalPart());
|
||||
properties.put(Endpoint.WSDL_SERVICE, serviceName);
|
||||
|
||||
wsEndpoint.setMetadata(metadata);
|
||||
|
|
Loading…
Reference in a new issue