diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CApplicationLaunchShortcut.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CApplicationLaunchShortcut.java index e22d04ba2b0..a731c06e44f 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CApplicationLaunchShortcut.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/launch/CApplicationLaunchShortcut.java @@ -101,7 +101,8 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut2 { String projectName = CDebugUtils.getProjectName(config); IPath name = bin.getResource().getProjectRelativePath(); // don't match any launch config that is used for a Container launch - if (config.getAttribute(CONNECTION_URI, "").isEmpty()) { //$NON-NLS-1$ + String connectionURI = config.getAttribute(CONNECTION_URI, (String)null); + if (connectionURI == null) { //$NON-NLS-1$ if (programPath != null && programPath.equals(name)) { if (projectName != null && projectName.equals(bin.getCProject().getProject().getName())) { candidateConfigs.add(config);