Skip to content

Commit

Permalink
PerspectiveSwitcher.ignoreEvent: fix NPE
Browse files Browse the repository at this point in the history
perspSwitcherToolbar is null before createWidget() called
  • Loading branch information
EcljpseB0T authored and jukzi committed Oct 9, 2024
1 parent d5815f3 commit a431d71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ public void getName(AccessibleEvent e) {
* @return true if the event is relevant, false if it can be ignored
*/
private boolean ignoreEvent(Object changedObj) {
if (perspSwitcherToolControl == null || perspSwitcherToolbar.isDisposed()) {
if (perspSwitcherToolControl == null || perspSwitcherToolbar == null || perspSwitcherToolbar.isDisposed()) {
return true;
}

Expand Down

0 comments on commit a431d71

Please sign in to comment.