cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1446358 - /cxf/trunk/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java
Date Thu, 14 Feb 2013 22:09:14 GMT
Author: dkulp
Date: Thu Feb 14 22:09:13 2013
New Revision: 1446358

URL: http://svn.apache.org/r1446358
Log:
[CXF-4820] Add a better exception instead of an NPE

Modified:
    cxf/trunk/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java

Modified: cxf/trunk/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java?rev=1446358&r1=1446357&r2=1446358&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java
(original)
+++ cxf/trunk/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java
Thu Feb 14 22:09:13 2013
@@ -126,8 +126,12 @@ public class JavaScriptContainer extends
 
             } else {
                 // TODO: wsdl2.0 support
+                throw new ToolException("Only WSDL 1.1 supported");
             }
         }
+        if (serviceList.isEmpty()) {
+            throw new ToolException("Did not find any services in WSDL");
+        }
         Map<String, InterfaceInfo> interfaces = new LinkedHashMap<String, InterfaceInfo>();
         
         ServiceInfo service0 = serviceList.get(0);



Mime
View raw message