Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.help.base/src/org/eclipse/help/internal/standalone/Eclipse.java')
-rw-r--r--org.eclipse.help.base/src/org/eclipse/help/internal/standalone/Eclipse.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/standalone/Eclipse.java b/org.eclipse.help.base/src/org/eclipse/help/internal/standalone/Eclipse.java
index 53d2b8339..4416ecaf3 100644
--- a/org.eclipse.help.base/src/org/eclipse/help/internal/standalone/Eclipse.java
+++ b/org.eclipse.help.base/src/org/eclipse/help/internal/standalone/Eclipse.java
@@ -10,7 +10,11 @@
*******************************************************************************/
package org.eclipse.help.internal.standalone;
-import java.io.*;
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
import java.util.List;
/**
@@ -176,6 +180,9 @@ public class Eclipse extends Thread {
throw new Exception("Plugins directory " + pluginsDir.getAbsolutePath() //$NON-NLS-1$
+ " does not exists. Pass a correct -eclipsehome option"); //$NON-NLS-1$
File[] plugins = pluginsDir.listFiles();
+ if(plugins == null) {
+ throw new IOException("Content from plugins directory '" + pluginsDir.getAbsolutePath() + "' can not be listed."); //$NON-NLS-1$ //$NON-NLS-2$
+ }
for (int i = 0; i < plugins.length; i++) {
String file = plugins[i].getName();
if (file.startsWith("org.eclipse.equinox.launcher_") && file.endsWith(".jar") && !plugins[i].isDirectory()) //$NON-NLS-1$ //$NON-NLS-2$

Back to the top