Fix NPE when creating launch config manually
authorEd Swartz <ed.swartz@nokia.com>
Wed, 06 Jan 2010 07:53:39 -0600
changeset 746 df006c3379d5
parent 745 51d63d83aad1
child 747 11dc6d4e9da5
Fix NPE when creating launch config manually
debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/ExecutablesTab.java
--- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/ExecutablesTab.java	Tue Jan 05 18:36:01 2010 -0600
+++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/ExecutablesTab.java	Wed Jan 06 07:53:39 2010 -0600
@@ -284,7 +284,7 @@
 			// which causes the apply button to become enabled which is not expected behavior.  this will
 			// be called later if/when they do specify the main program, so we'll make sure then that it's
 			// actually being targeted.
-			if (programName.length() > 0) {
+			if (programName != null && programName.length() > 0) {
 				boolean resetProgramName = true;
 				// check to see if the current program name is one of the executables to target
 				for (ExeFileToDebug exeFileToDebug : executablesToTarget) {