mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
check is disposed (correct solution will be later (we should not hold disposed stores))
This commit is contained in:
@@ -67,6 +67,10 @@ class StoreAwareProjectManager(virtualFileManager: VirtualFileManager, progressM
|
||||
if (!changes.isEmpty()) {
|
||||
runBatchUpdate(project.getMessageBus()) {
|
||||
for ((store, storages) in changes.entrySet()) {
|
||||
if ((store.storageManager as? StateStorageManagerImpl)?.componentManager?.isDisposed() ?: false) {
|
||||
continue
|
||||
}
|
||||
|
||||
@suppress("UNCHECKED_CAST")
|
||||
if (reloadStore(storages as Set<StateStorage>, store, false) == ReloadComponentStoreStatus.RESTART_AGREED) {
|
||||
projectsToReload.add(project)
|
||||
|
||||
Reference in New Issue
Block a user