Skip to content

Commit

Permalink
MPS-26434 run in EDT failure: com.intellij.openapi.fileEditor.FileEdi…
Browse files Browse the repository at this point in the history
…torState$$Lambda$556/1828770593 cannot be cast to jetbrains.mps.ide.editor.MPSEditorStateWrapper
  • Loading branch information
ashatalin committed Aug 17, 2017
1 parent 04ee7f4 commit 0096243
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -181,7 +181,7 @@ public MPSEditorStateWrapper getState(@NotNull final FileEditorStateLevel level)

@Override
public void setState(final @NotNull FileEditorState state) {
if (myNodeEditor == null) {
if (myNodeEditor == null || !(state instanceof MPSEditorStateWrapper)) {
return;
}
final MPSEditorStateWrapper wrapper = (MPSEditorStateWrapper) state;
Expand Down

0 comments on commit 0096243

Please sign in to comment.