Skip to content

Commit

Permalink
Merge pull request #6254 from chrisrueger/6199-fix-npe-in-stop
Browse files Browse the repository at this point in the history
Fix NPE in JavaSearchStartupParticipant.stop() during Eclipse shutdown
  • Loading branch information
chrisrueger authored Sep 1, 2024
2 parents 2858f5e + d27fe47 commit 3a93b28
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ private void createBndtoolsJavaWorkingSet() {

@Override
public void stop() {
NewSearchUI.removeQueryListener(this);
Display current = Display.getCurrent();
if (current != null) {
current.syncExec(() -> {
NewSearchUI.removeQueryListener(this);
});
}

}

@Override
Expand Down

0 comments on commit 3a93b28

Please sign in to comment.