mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
when processing certain edt events do not wait until async indices
initialization is completed (IDEA-173382)
This commit is contained in:
@@ -1364,8 +1364,12 @@ public class FileBasedIndexImpl extends FileBasedIndex implements BaseComponent,
|
||||
|
||||
private void cleanupMemoryStorage() {
|
||||
myLastIndexedDocStamps.clear();
|
||||
waitUntilIndicesAreInitialized();
|
||||
IndexConfiguration state = getState();
|
||||
IndexConfiguration state = myState;
|
||||
if (state == null) {
|
||||
// avoid waiting for end of indices initialization (IDEA-173382)
|
||||
// in memory content will appear on indexing (in read action) and here is event dispatch (write context)
|
||||
return;
|
||||
}
|
||||
for (ID<?, ?> indexId : state.getIndexIDs()) {
|
||||
final MapReduceIndex index = (MapReduceIndex)state.getIndex(indexId);
|
||||
assert index != null;
|
||||
|
||||
Reference in New Issue
Block a user