ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r526485 - /ant/core/trunk/src/main/org/apache/tools/ant/Main.java
Date Sat, 07 Apr 2007 21:17:01 GMT
Author: jkf
Date: Sat Apr  7 14:17:00 2007
New Revision: 526485

URL: http://svn.apache.org/viewvc?view=rev&rev=526485
Log:
project cannot be null, few lines bewore and next line would throw NPE.

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/Main.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/Main.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/Main.java?view=diff&rev=526485&r1=526484&r2=526485
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/Main.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/Main.java Sat Apr  7 14:17:00 2007
@@ -799,9 +799,8 @@
             BuildListener listener =
                     (BuildListener) ClasspathUtils.newInstance(className,
                             Main.class.getClassLoader(), BuildListener.class);
-            if (project != null) {
-                project.setProjectReference(listener);
-            }
+            project.setProjectReference(listener);
+
             project.addBuildListener(listener);
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message