mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] do not schedule indexing if index is disposed
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user