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

Avoid NPE (reported by FindBugs)

This commit is contained in:
John Cortell 2011-03-29 15:38:16 +00:00
parent 79a13f0c70
commit 69100108b5

View file

@ -129,8 +129,9 @@ public class GDBJtagDSFFinalLaunchSequence extends Sequence {
if (fCommandControl == null) {
requestMonitor.setStatus(new Status(IStatus.ERROR, Activator.PLUGIN_ID, -1, "Cannot obtain control service", null)); //$NON-NLS-1$
}
fCommandFactory = fCommandControl.getCommandFactory();
else {
fCommandFactory = fCommandControl.getCommandFactory();
}
requestMonitor.done();
}},