Skip to main content
summaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorMarc Khouzam2013-09-13 11:00:23 -0400
committerMarc Khouzam2013-09-13 14:07:45 -0400
commit1bdeaffebacacd2b0c0bf8fdd0346694699c84b5 (patch)
tree67b7501cf71244884b4613a0f94839d9a3c61d38 /debug
parentd626c57598dd4bf77a072c14c2169b6d8e6f4cbd (diff)
downloadorg.eclipse.cdt-1bdeaffebacacd2b0c0bf8fdd0346694699c84b5.tar.gz
org.eclipse.cdt-1bdeaffebacacd2b0c0bf8fdd0346694699c84b5.tar.xz
org.eclipse.cdt-1bdeaffebacacd2b0c0bf8fdd0346694699c84b5.zip
Bug 417199 - Fix project-less debug
Change-Id: Icf2c185dbc53eccd068e384431d16d82a38d789e Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com> Reviewed-on: https://git.eclipse.org/r/16414 Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugStringVariableSubstitutor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugStringVariableSubstitutor.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugStringVariableSubstitutor.java
index 269df80fa0..86c1c70bcc 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugStringVariableSubstitutor.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugStringVariableSubstitutor.java
@@ -95,11 +95,11 @@ public class DebugStringVariableSubstitutor implements IStringVariableManager {
* variables in the context of the given project.
*
* @param projectName the name of the project used to resolve project_name, project_loc and
- * project_path variables. If {@code null}, the project is determined based on the current
+ * project_path variables. If {@code null} or empty, the project is determined based on the current
* selection.
*/
public DebugStringVariableSubstitutor(String projectName) {
- this(projectName == null ? null : ResourcesPlugin.getWorkspace().getRoot().getProject(projectName));
+ this(projectName == null || projectName.isEmpty() ? null : ResourcesPlugin.getWorkspace().getRoot().getProject(projectName));
}
public IStringVariable[] getVariables() {

Back to the top