Skip to content

Commit

Permalink
Ignore the "Project-level session is not set" error when closing project
Browse files Browse the repository at this point in the history
  • Loading branch information
whimet committed Jan 12, 2024
1 parent e6497ac commit 672f795
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 672f795

Please sign in to comment.