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:
bdaniel 2010-10-19 16:15:51 +00:00
parent d3979a0483
commit d2f1ac6aba

View file

@ -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);