ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r518897 - /ant/core/trunk/src/main/org/apache/tools/ant/util/FileUtils.java
Date Fri, 16 Mar 2007 09:17:03 GMT
Author: kevj
Date: Fri Mar 16 02:17:02 2007
New Revision: 518897

URL: http://svn.apache.org/viewvc?view=rev&rev=518897
Log:
-sorry prevent NullPointerException

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/util/FileUtils.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/util/FileUtils.java?view=diff&rev=518897&r1=518896&r2=518897
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/util/FileUtils.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/util/FileUtils.java Fri Mar 16 02:17:02 2007
@@ -1303,6 +1303,9 @@
 
     
     private static void closeQuietly(Object o) {
+        if (null == o) {
+            return;
+        }
         try {
             if(ReflectUtil.respondsTo(o, "close")) {
                 ReflectUtil.invoke(o, "close");



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


Mime
View raw message