ported from HEAD: null checks added
diff --git a/core/plugins/org.eclipse.dltk.launching/src/org/eclipse/dltk/internal/launching/LaunchConfigurationUtils.java b/core/plugins/org.eclipse.dltk.launching/src/org/eclipse/dltk/internal/launching/LaunchConfigurationUtils.java
index d1f9046..bac1f65 100644
--- a/core/plugins/org.eclipse.dltk.launching/src/org/eclipse/dltk/internal/launching/LaunchConfigurationUtils.java
+++ b/core/plugins/org.eclipse.dltk.launching/src/org/eclipse/dltk/internal/launching/LaunchConfigurationUtils.java
@@ -28,7 +28,8 @@
 			String name, boolean defaultValue) {
 		boolean value = defaultValue;
 		try {
-			value = configuration.getAttribute(name, defaultValue);
+			if (configuration != null)
+				value = configuration.getAttribute(name, defaultValue);
 		} catch (CoreException e) {
 			DLTKLaunchingPlugin.log(e);
 		}
@@ -128,7 +129,8 @@
 			String name, String defaultValue) {
 		String value = defaultValue;
 		try {
-			value = configuration.getAttribute(name, defaultValue);
+			if (configuration != null)
+				value = configuration.getAttribute(name, defaultValue);
 		} catch (CoreException e) {
 			DLTKLaunchingPlugin.log(e);
 		}