From fff45080d07fea3b16b47f0c2f68ed9b1ad5362a Mon Sep 17 00:00:00 2001 From: John Cortell Date: Thu, 2 Sep 2010 16:35:56 +0000 Subject: [PATCH] Fix potential null pointer use --- .../debug/gdbjtag/core/GDBJtagLaunchConfigurationDelegate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagLaunchConfigurationDelegate.java b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagLaunchConfigurationDelegate.java index 55d28124f6c..dd2dedfeef1 100644 --- a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagLaunchConfigurationDelegate.java +++ b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagLaunchConfigurationDelegate.java @@ -62,7 +62,7 @@ public class GDBJtagLaunchConfigurationDelegate extends AbstractCLaunchDelegate Process process = targets[i].getProcess(); IProcess iprocess = null; if ( process != null ) { - iprocess = DebugPlugin.newProcess(launch, process, renderProcessLabel(exePath.toOSString()), + iprocess = DebugPlugin.newProcess(launch, process, renderProcessLabel(exePath != null ? exePath.toOSString() : "???"), getDefaultProcessMap() ); } CDIDebugModel.newDebugTarget(launch, project.getProject(), targets[i],