Author: mmao
Date: Thu Aug 2 20:12:13 2007
New Revision: 562315
URL: http://svn.apache.org/viewvc?view=rev&rev=562315
Log:
CXF-875 FIX an NPE, when no addresses is defined in the wsd:port.
Modified:
incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
Modified:
incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java?view=diff&rev=562315&r1=562314&r2=562315
==============================================================================
---
incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
(original)
+++
incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
Thu Aug 2 20:12:13 2007
@@ -232,7 +232,7 @@
for (Port port : cast(serv.getPorts().values(), Port.class)) {
Binding binding = port.getBinding();
PortType bindingPt = binding.getPortType();
- //TODO: wsdl4j's bug. if there is recursive import,
+ //TODO: wsdl4j's bug. if there is recursive import,
//wsdl4j can not get operation input message
PortType pt = def.getPortType(bindingPt.getQName());
if (pt == null) {
@@ -451,6 +451,10 @@
break;
}
}
+ }
+ if (ns == null) {
+ throw new RuntimeException("Can non find the destination
factory, check the port "
+ + " //wsdl:[EMAIL PROTECTED]'" +
port.getName() + "']");
}
try {
factory =
bus.getExtension(DestinationFactoryManager.class).getDestinationFactory(ns);