Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2018-08-23 06:27:33 +0000
committerAndrey Loskutov2018-08-23 06:27:33 +0000
commit5e57e66963404eb17d545fbb78cfc6192bb2c1bf (patch)
tree260cfb280789349f6e16a2c2a4654649cb8b18a6
parent9f1dcac99e6c986e0fd94c9d0b7bcea29721e824 (diff)
downloadrt.equinox.bundles-5e57e66963404eb17d545fbb78cfc6192bb2c1bf.tar.gz
rt.equinox.bundles-5e57e66963404eb17d545fbb78cfc6192bb2c1bf.tar.xz
rt.equinox.bundles-5e57e66963404eb17d545fbb78cfc6192bb2c1bf.zip
Change-Id: I04cc8a9cc6002fc47ac2c89c212550d69f1216e1 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-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 5b72ed2a1..91243cd24 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