diff options
Diffstat (limited to 'org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java')
-rw-r--r-- | org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java index f7078181f..1d66666bc 100644 --- a/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java +++ b/org.eclipse.debug.core/core/org/eclipse/debug/internal/core/LaunchManager.java @@ -1043,7 +1043,7 @@ public class LaunchManager extends PlatformObject implements ILaunchManager, IRe } }; File[] configFiles = directory.listFiles(configFilter); - if (configFiles.length > 0) { + if (configFiles != null && configFiles.length > 0) { LaunchConfiguration config = null; for (int i = 0; i < configFiles.length; i++) { config = new LaunchConfiguration(LaunchConfiguration.getSimpleName(configFiles[i].getName()), null, false); @@ -1057,7 +1057,7 @@ public class LaunchManager extends PlatformObject implements ILaunchManager, IRe } }; File[] prototypeFiles = directory.listFiles(prototypeFilter); - if (prototypeFiles.length > 0) { + if (prototypeFiles != null && prototypeFiles.length > 0) { LaunchConfiguration config = null; for (int i = 0; i < prototypeFiles.length; i++) { config = new LaunchConfiguration(LaunchConfiguration.getSimpleName(prototypeFiles[i].getName()), null, true); |