# HG changeset patch # User Ed Swartz # Date 1262786019 21600 # Node ID df006c3379d50a23eff3d8b7caee1f7e90abd76b # Parent 51d63d83aad194d92412786c4b8bf4349836ee41 Fix NPE when creating launch config manually diff -r 51d63d83aad1 -r df006c3379d5 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) {