Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2013-09-13 15:00:23 +0000
committerMarc Khouzam2013-09-13 18:07:45 +0000
commit1bdeaffebacacd2b0c0bf8fdd0346694699c84b5 (patch)
tree67b7501cf71244884b4613a0f94839d9a3c61d38
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>
-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 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() {

Back to the top