diff options
Diffstat (limited to 'org.eclipse.help.base/src/org/eclipse/help/internal/base/IndexToolApplication.java')
-rw-r--r-- | org.eclipse.help.base/src/org/eclipse/help/internal/base/IndexToolApplication.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/base/IndexToolApplication.java b/org.eclipse.help.base/src/org/eclipse/help/internal/base/IndexToolApplication.java index f254fc69d..d050bf870 100644 --- a/org.eclipse.help.base/src/org/eclipse/help/internal/base/IndexToolApplication.java +++ b/org.eclipse.help.base/src/org/eclipse/help/internal/base/IndexToolApplication.java @@ -100,6 +100,9 @@ public class IndexToolApplication implements IApplication { private static void delete(File file) throws IOException { if (file.isDirectory()) { File files[] = file.listFiles(); + if(files == null) { + throw new IOException("Content from directory '" + file.getAbsolutePath() + "' can not be listed."); //$NON-NLS-1$ //$NON-NLS-2$ + } for (int i = 0; i < files.length; i++) { delete(files[i]); } |