You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by hi...@apache.org on 2010/11/16 13:57:37 UTC

svn commit: r1035624 - /ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/ConfTableViewer.java

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