Skip to content

Commit

Permalink
Merge pull request #218 from ZenUml/fix-project-closing-error
Browse files Browse the repository at this point in the history
Ignore the "Project-level session is not set" error when closing project
  • Loading branch information
MrCoder committed Jan 13, 2024
2 parents e6497ac + 672f795 commit d7f1f99
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/org/intellij/sequencer/SequencePlugin2.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,15 @@ public static SequencePlugin2 getInstance(Project project) {
}

public void projectClosed() {
try{
try {
getToolWindowManager().unregisterToolWindow(PLAGIN_NAME);
} catch (AlreadyDisposedException e) {

//ignore
} catch (IllegalStateException e) {
if (!e.getMessage().startsWith("Project-level session is not set")) {
throw e;
}
//else ignore
}
}

Expand Down

0 comments on commit d7f1f99

Please sign in to comment.