ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xav...@apache.org
Subject svn commit: r787597 - /ant/ivy/core/trunk/src/java/org/apache/ivy/core/resolve/IvyNodeUsage.java
Date Tue, 23 Jun 2009 09:28:57 GMT
Author: xavier
Date: Tue Jun 23 09:28:56 2009
New Revision: 787597

URL: http://svn.apache.org/viewvc?rev=787597&view=rev
Log:
FIX: NPE in some cases, related to IVY-1083 implementation

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/core/resolve/IvyNodeUsage.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/core/resolve/IvyNodeUsage.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/core/resolve/IvyNodeUsage.java?rev=787597&r1=787596&r2=787597&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/core/resolve/IvyNodeUsage.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/core/resolve/IvyNodeUsage.java Tue Jun 23 09:28:56
2009
@@ -311,6 +311,9 @@
      */
     public boolean hasTransitiveDepender(String rootModuleConf) {
         Set/*<Depender>*/ dependersSet = (Set) dependers.get(rootModuleConf);
+        if (dependersSet == null) {
+            return false;
+        }
         for (Iterator iterator = dependersSet.iterator(); iterator.hasNext();) {
             Depender depender = (Depender) iterator.next();
             if (depender.dd.isTransitive()) {



Mime
View raw message