Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-10-14 14:04:40 +0000
committerUwe Stieber2013-10-14 14:04:40 +0000
commitc004140cb9055bf5893e0d420a7f640c14595b64 (patch)
treef1609cd193b34b9b31f67e1d59f0e5159e1ca94f /target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper
parentd5755657903e822a62625efe86a038f1d9313dbf (diff)
downloadorg.eclipse.tcf-c004140cb9055bf5893e0d420a7f640c14595b64.tar.gz
org.eclipse.tcf-c004140cb9055bf5893e0d420a7f640c14595b64.tar.xz
org.eclipse.tcf-c004140cb9055bf5893e0d420a7f640c14595b64.zip
Target Explorer: Fix FindBugs warnings
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/extensions/StepExecutor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/extensions/StepExecutor.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/extensions/StepExecutor.java
index 293c3e0db..63fda4d9d 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/extensions/StepExecutor.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/extensions/StepExecutor.java
@@ -91,6 +91,7 @@ public class StepExecutor implements IStepExecutor {
int ticksToUse = step.getTotalWork(context, data);
progress = ProgressHelper.getProgressMonitor(progress, ticksToUse);
+ Assert.isNotNull(progress);
ProgressHelper.beginTask(progress, step.getLabel(), ticksToUse);
// Create the handler (and the callback) for the current step
@@ -127,7 +128,7 @@ public class StepExecutor implements IStepExecutor {
return;
}
- if (callback.getStatus().matches(IStatus.CANCEL) || (progress != null && progress.isCanceled())) {
+ if (callback.getStatus().matches(IStatus.CANCEL) || progress.isCanceled()) {
throw new OperationCanceledException(callback.getStatus().getMessage());
}

Back to the top