mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-32855 (NPE)
This commit is contained in:
@@ -471,9 +471,11 @@ public abstract class ToolWindowHeader extends JPanel implements Disposable {
|
||||
@Override
|
||||
public void altPressed() {
|
||||
PointerInfo info = MouseInfo.getPointerInfo();
|
||||
Point p = info.getLocation();
|
||||
SwingUtilities.convertPointFromScreen(p, this);
|
||||
switchAlternativeAction(myButton.getBounds().contains(p));
|
||||
if (info != null) {
|
||||
Point p = info.getLocation();
|
||||
SwingUtilities.convertPointFromScreen(p, this);
|
||||
switchAlternativeAction(myButton.getBounds().contains(p));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user