diff options
author | Marc Khouzam | 2013-09-13 15:00:23 +0000 |
---|---|---|
committer | Marc Khouzam | 2013-09-13 18:07:45 +0000 |
commit | 1bdeaffebacacd2b0c0bf8fdd0346694699c84b5 (patch) | |
tree | 67b7501cf71244884b4613a0f94839d9a3c61d38 | |
parent | d626c57598dd4bf77a072c14c2169b6d8e6f4cbd (diff) | |
download | org.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>
-rw-r--r-- | debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugStringVariableSubstitutor.java | 4 |
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 269df80fa0b..86c1c70bcc9 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() { |