mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-73299 - NPE: ArrangementAtomMatchConditionComponent$.paint
This commit is contained in:
+2
-2
@@ -183,8 +183,8 @@ public class ArrangementAtomMatchConditionComponent implements ArrangementUiComp
|
||||
public void paint(Graphics g) {
|
||||
Rectangle buttonBounds = getCloseButtonScreenBounds();
|
||||
if (buttonBounds != null) {
|
||||
Point mouseScreenLocation = MouseInfo.getPointerInfo().getLocation();
|
||||
myCloseButtonHovered = buttonBounds.contains(mouseScreenLocation);
|
||||
final PointerInfo info = MouseInfo.getPointerInfo();
|
||||
myCloseButtonHovered = info != null && buttonBounds.contains(info.getLocation());
|
||||
}
|
||||
|
||||
Rectangle bounds = getBounds();
|
||||
|
||||
Reference in New Issue
Block a user