EA-73299 - NPE: ArrangementAtomMatchConditionComponent$.paint

This commit is contained in:
Svetlana.Zemlyanskaya
2015-11-26 11:40:40 +01:00
parent fd51bbbc13
commit 9044388103
@@ -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();