1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Fix potential null pointer use

This commit is contained in:
John Cortell 2010-09-02 16:35:56 +00:00
parent 70f1bbd6c4
commit fff45080d0

View file

@ -62,7 +62,7 @@ public class GDBJtagLaunchConfigurationDelegate extends AbstractCLaunchDelegate
Process process = targets[i].getProcess(); Process process = targets[i].getProcess();
IProcess iprocess = null; IProcess iprocess = null;
if ( process != null ) { if ( process != null ) {
iprocess = DebugPlugin.newProcess(launch, process, renderProcessLabel(exePath.toOSString()), iprocess = DebugPlugin.newProcess(launch, process, renderProcessLabel(exePath != null ? exePath.toOSString() : "???"),
getDefaultProcessMap() ); getDefaultProcessMap() );
} }
CDIDebugModel.newDebugTarget(launch, project.getProject(), targets[i], CDIDebugModel.newDebugTarget(launch, project.getProject(), targets[i],