From ea313a8e57da5ef5446c2c5eb94598d88dae9fe7 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Wed, 26 Aug 2015 17:48:50 +0200 Subject: [PATCH] check is disposed (correct solution will be later (we should not hold disposed stores)) --- .../configuration-store-impl/src/StoreAwareProjectManager.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/configuration-store-impl/src/StoreAwareProjectManager.kt b/platform/configuration-store-impl/src/StoreAwareProjectManager.kt index c3e35f53c9c1..d47cdc0ac2c4 100644 --- a/platform/configuration-store-impl/src/StoreAwareProjectManager.kt +++ b/platform/configuration-store-impl/src/StoreAwareProjectManager.kt @@ -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, store, false) == ReloadComponentStoreStatus.RESTART_AGREED) { projectsToReload.add(project)