commit | 3e6686a300c6a4b76909c7bf0024004d1e2868c6 | [log] [tgz] |
---|---|---|
author | Clement Escoffier <clement@apache.org> | Mon Sep 28 19:14:50 2009 +0000 |
committer | Clement Escoffier <clement@apache.org> | Mon Sep 28 19:14:50 2009 +0000 |
tree | 9376f57deb00f6c27804cd7eff1f4fb16867cfff | |
parent | 62db4b5f44845c5119e8ea8684054105b32fbc82 [diff] |
Avoid an NPE if the abstract path does not denote a directory. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@819679 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/online-manipulator/src/main/java/org/apache/felix/ipojo/online/manipulator/IPOJOURLHandler.java b/ipojo/online-manipulator/src/main/java/org/apache/felix/ipojo/online/manipulator/IPOJOURLHandler.java index 34515d9..14a9d4a 100644 --- a/ipojo/online-manipulator/src/main/java/org/apache/felix/ipojo/online/manipulator/IPOJOURLHandler.java +++ b/ipojo/online-manipulator/src/main/java/org/apache/felix/ipojo/online/manipulator/IPOJOURLHandler.java
@@ -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(); }