Do nothing for disposed projects
This commit is contained in:
committed by
Ilya Chernikov
parent
2e03a6f1fd
commit
d9ef8aa96f
+2
@@ -94,6 +94,8 @@ class KotlinScriptConfigurationManager(
|
||||
// TODO: it seems invokeLater leads to inconsistent behaviour (at least in tests)
|
||||
ApplicationManager.getApplication().invokeLater {
|
||||
runWriteAction {
|
||||
if (project.isDisposed) return@runWriteAction
|
||||
|
||||
ProjectRootManagerEx.getInstanceEx(project)?.makeRootsChange(EmptyRunnable.getInstance(), false, true)
|
||||
dumbService.runWhenSmart {
|
||||
ScriptDependenciesModificationTracker.getInstance(project).incModificationCount()
|
||||
|
||||
Reference in New Issue
Block a user