1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 01:36:01 +02:00

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>
This commit is contained in:
Marc Khouzam 2013-09-13 11:00:23 -04:00
parent 21a3e327a7
commit f22100e80b

View file

@ -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() {