Skip to main content
diff options
authorKarsten Thoms2018-05-09 09:50:13 +0000
committerAlexander Kurtakov2018-05-12 08:31:43 +0000
commit10de381e3c8b0656c0a5114a6332811f5f5484b4 (patch)
parent89e4950f804b53b7c87edac36608c8d1a252c0e1 (diff)
Fixes a regression. beginTask must not be called twice on an IProgressMonitor instance. SubMonitor.convert() will call beginTask on the given monitor, so beginTask must not be called before on this monitor instance. To avoid this, a SubMonitor is created with subMonitorFor given the required number of ticks. Change-Id: Icb87740d2a98a0c7b73bfaf6879c767e937759bf Signed-off-by: Karsten Thoms <>
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/ b/bundles/
index 13fa3e4a0..0fc27b09f 100644
--- a/bundles/
+++ b/bundles/
@@ -151,8 +151,7 @@ public class Session {
public void open(IProgressMonitor monitor, boolean writeAccess) throws CVSException {
if (connection != null) throw new IllegalStateException();
- monitor = Policy.monitorFor(monitor);
- monitor.beginTask(null, 100);
+ monitor = Policy.subMonitorFor(monitor, 100);
boolean opened = false;
try {

Back to the top