Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jtag
diff options
context:
space:
mode:
authorJohn Cortell2011-03-29 11:38:16 -0400
committerJohn Cortell2011-03-29 11:38:16 -0400
commit69100108b578415467a07750e5fe8ed6eb1c59df (patch)
treebd9eb907c46689b2ab818c0a7c4a06858d0cf157 /jtag
parent79a13f0c7025a9ce7c8dd3395e5623db0be3fda3 (diff)
downloadorg.eclipse.cdt-69100108b578415467a07750e5fe8ed6eb1c59df.tar.gz
org.eclipse.cdt-69100108b578415467a07750e5fe8ed6eb1c59df.tar.xz
org.eclipse.cdt-69100108b578415467a07750e5fe8ed6eb1c59df.zip
Avoid NPE (reported by FindBugs)
Diffstat (limited to 'jtag')
-rw-r--r--jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java
index 029085f530..67a4541397 100644
--- a/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java
+++ b/jtag/org.eclipse.cdt.debug.gdbjtag.core/src/org/eclipse/cdt/debug/gdbjtag/core/GDBJtagDSFFinalLaunchSequence.java
@@ -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();
}},

Back to the top