Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 67913 invoked from network); 16 Nov 2010 12:58:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Nov 2010 12:58:22 -0000 Received: (qmail 18899 invoked by uid 500); 16 Nov 2010 12:58:54 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 18864 invoked by uid 500); 16 Nov 2010 12:58:54 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 18854 invoked by uid 99); 16 Nov 2010 12:58:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 12:58:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.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; Tue, 16 Nov 2010 12:58:52 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8E50E2388A5E; Tue, 16 Nov 2010 12:57:37 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1035624 - /ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/ConfTableViewer.java Date: Tue, 16 Nov 2010 12:57:37 -0000 To: notifications@ant.apache.org From: hibou@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101116125737.8E50E2388A5E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: hibou Date: Tue Nov 16 12:57:37 2010 New Revision: 1035624 URL: http://svn.apache.org/viewvc?rev=1035624&view=rev Log: Avoid a NPE when the ivy.xml cannot be parsed Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/ConfTableViewer.java Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/ConfTableViewer.java URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/ConfTableViewer.java?rev=1035624&r1=1035623&r2=1035624&view=diff ============================================================================== --- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/ConfTableViewer.java (original) +++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/ConfTableViewer.java Tue Nov 16 12:57:37 2010 @@ -149,7 +149,11 @@ public class ConfTableViewer extends Com } public void setModuleDescriptor(ModuleDescriptor md) { - orderedConfigurations = md.getConfigurations(); + if (md == null) { + orderedConfigurations = new Configuration[0]; + } else { + orderedConfigurations = md.getConfigurations(); + } confTableViewer.setInput(orderedConfigurations); }