felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clem...@apache.org
Subject svn commit: r819679 - /felix/trunk/ipojo/online-manipulator/src/main/java/org/apache/felix/ipojo/online/manipulator/IPOJOURLHandler.java
Date Mon, 28 Sep 2009 19:14:51 GMT
Author: clement
Date: Mon Sep 28 19:14:50 2009
New Revision: 819679

URL: http://svn.apache.org/viewvc?rev=819679&view=rev
Log:
Avoid an NPE if the abstract path does not denote a directory.

Modified:
    felix/trunk/ipojo/online-manipulator/src/main/java/org/apache/felix/ipojo/online/manipulator/IPOJOURLHandler.java

Modified: felix/trunk/ipojo/online-manipulator/src/main/java/org/apache/felix/ipojo/online/manipulator/IPOJOURLHandler.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/online-manipulator/src/main/java/org/apache/felix/ipojo/online/manipulator/IPOJOURLHandler.java?rev=819679&r1=819678&r2=819679&view=diff
==============================================================================
--- felix/trunk/ipojo/online-manipulator/src/main/java/org/apache/felix/ipojo/online/manipulator/IPOJOURLHandler.java
(original)
+++ felix/trunk/ipojo/online-manipulator/src/main/java/org/apache/felix/ipojo/online/manipulator/IPOJOURLHandler.java
Mon Sep 28 19:14:50 2009
@@ -74,8 +74,10 @@
      */
     public void stop() {
         File[] files = m_temp.listFiles();
-        for (int i = 0; i < files.length; i++) {
-            files[i].delete();
+        if (files != null) {
+            for (int i = 0; i < files.length; i++) {
+                files[i].delete();
+            }
         }
         m_temp.delete();
     }



Mime
View raw message