ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
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 GMT
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);
     }
 



Mime
View raw message