Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/SubMonitor.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/SubMonitor.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/SubMonitor.java
index 5b72ed2a..91243cd2 100644
--- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/SubMonitor.java
+++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/SubMonitor.java
@@ -314,7 +314,7 @@ public final class SubMonitor implements IProgressMonitorWithBlocking {
* the parent progress monitor is touched. This points to the last incomplete child
* created with split.
*/
- private SubMonitor lastSubMonitor = null;
+ private SubMonitor lastSubMonitor;
/**
* Used to communicate with the root of this progress monitor tree
@@ -991,10 +991,11 @@ public final class SubMonitor implements IProgressMonitorWithBlocking {
}
private void cleanupActiveChild() {
- if (lastSubMonitor == null)
+ IProgressMonitor child = lastSubMonitor;
+ if (child == null) {
return;
+ }
- IProgressMonitor child = lastSubMonitor;
lastSubMonitor = null;
child.done();
}

Back to the top