[vcs-log] do not schedule indexing if index is disposed

This commit is contained in:
Julia Beliaeva
2017-08-21 02:23:20 +03:00
parent 3062215a3a
commit 5b91f97a8d
@@ -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;