From 5b91f97a8d22e700509321732d4d23286b476c18 Mon Sep 17 00:00:00 2001 From: Julia Beliaeva Date: Fri, 18 Aug 2017 06:05:47 +0300 Subject: [PATCH] [vcs-log] do not schedule indexing if index is disposed --- .../com/intellij/vcs/log/data/index/VcsLogPersistentIndex.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPersistentIndex.java b/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPersistentIndex.java index d342909dc69f..40dfb3f6a812 100644 --- a/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPersistentIndex.java +++ b/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPersistentIndex.java @@ -137,6 +137,7 @@ public class VcsLogPersistentIndex implements VcsLogIndex, Disposable { @Override public synchronized void scheduleIndex(boolean full) { + if (Disposer.isDisposed(this)) return; if (myCommitsToIndex.isEmpty() || myIndexStorage == null) return; // for fresh index, wait for complete log to load and index everything in one command if (myIndexStorage.isFresh() && !full) return;