Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2990CD70A for ; Thu, 14 Feb 2013 22:11:17 +0000 (UTC) Received: (qmail 72779 invoked by uid 500); 14 Feb 2013 22:11:17 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 72734 invoked by uid 500); 14 Feb 2013 22:11:17 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 72720 invoked by uid 99); 14 Feb 2013 22:11:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Feb 2013 22:11:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Feb 2013 22:11:15 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B0D3B23889D5; Thu, 14 Feb 2013 22:10:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1446359 - /cxf/branches/2.7.x-fixes/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java Date: Thu, 14 Feb 2013 22:10:56 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130214221056.B0D3B23889D5@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dkulp Date: Thu Feb 14 22:10:56 2013 New Revision: 1446359 URL: http://svn.apache.org/r1446359 Log: Merged revisions 1446358 via git cherry-pick from https://svn.apache.org/repos/asf/cxf/trunk ........ r1446358 | dkulp | 2013-02-14 17:09:13 -0500 (Thu, 14 Feb 2013) | 2 lines [CXF-4820] Add a better exception instead of an NPE ........ Modified: cxf/branches/2.7.x-fixes/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java Modified: cxf/branches/2.7.x-fixes/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java?rev=1446359&r1=1446358&r2=1446359&view=diff ============================================================================== --- cxf/branches/2.7.x-fixes/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java (original) +++ cxf/branches/2.7.x-fixes/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java Thu Feb 14 22:10:56 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 interfaces = new LinkedHashMap(); ServiceInfo service0 = serviceList.get(0);