Skip to content

Fix PluginException: avoid calling findProject() inside a read action#141

Open
simonstratmann wants to merge 1 commit intokrasa:masterfrom
simonstratmann:master
Open

Fix PluginException: avoid calling findProject() inside a read action#141
simonstratmann wants to merge 1 commit intokrasa:masterfrom
simonstratmann:master

Conversation

@simonstratmann
Copy link

Guard createEditor() and isPomFile() with isMavenizedProject() so that MavenProjectsManager.getProjectsTree() is never triggered before the project tree is initialized, which would call doInitTree() and fail with 'Must not execute inside read action'.

Fixes #140

Guard createEditor() and isPomFile() with isMavenizedProject() so that
MavenProjectsManager.getProjectsTree() is never triggered before the
project tree is initialized, which would call doInitTree() and fail with
'Must not execute inside read action'.

Fixes krasa#140
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PluginException: Must not execute inside read action

1 participant