Do not track mouse event on status bar if right panel is not created yet (EA-144532)

GitOrigin-RevId: d5e48c4c8006e21dcb6aa5e631a1118ef7dd646b
This commit is contained in:
Alexander Zolotov
2019-06-08 20:07:33 +03:00
committed by intellij-monorepo-bot
parent e68914fc87
commit 91a9434d63
@@ -522,6 +522,9 @@ public class IdeStatusBarImpl extends JComponent implements Accessible, StatusBa
@Override
public boolean dispatch(@NotNull AWTEvent e) {
if (e instanceof MouseEvent) {
if (myRightPanel == null) {
return false;
}
Component component = ((MouseEvent)e).getComponent();
if (component == null) {
return false;