Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Magloire2004-10-22 15:13:33 +0000
committerAlain Magloire2004-10-22 15:13:33 +0000
commit4d146140b37e41dcd0f34f4c6c22a7a7d753da97 (patch)
tree936fa8e0e0da3cde58f38fa805a8085559fa1c0e /launch/org.eclipse.cdt.launch
parent4c0d34ec50a9c52aaaecac3c29acea4c8d5926d1 (diff)
downloadorg.eclipse.cdt-4d146140b37e41dcd0f34f4c6c22a7a7d753da97.tar.gz
org.eclipse.cdt-4d146140b37e41dcd0f34f4c6c22a7a7d753da97.tar.xz
org.eclipse.cdt-4d146140b37e41dcd0f34f4c6c22a7a7d753da97.zip
Fix NPE
Diffstat (limited to 'launch/org.eclipse.cdt.launch')
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java
index bcb7c9d68fa..7e8625503c5 100644
--- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java
+++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java
@@ -92,7 +92,11 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
}
} catch (CoreException e) {
}
- return DebugPlugin.getDefault().getLaunchManager().getEnvironment(config);
+ String[] array = DebugPlugin.getDefault().getLaunchManager().getEnvironment(config);
+ if (array == null) {
+ return new String[0];
+ }
+ return array;
}
/**

Back to the top