Browse Source

Ensure popup isn't null when moving. Fixes #202

pull/214/head
weisj 4 years ago
parent
commit
d6c08d1098
  1. 1
      core/src/main/java/com/github/weisj/darklaf/ui/cell/hint/CellHintPopupListener.java

1
core/src/main/java/com/github/weisj/darklaf/ui/cell/hint/CellHintPopupListener.java

@ -248,6 +248,7 @@ public class CellHintPopupListener<T extends JComponent, I> extends MouseInputAd
} }
private void movePopup(final Rectangle bounds) { private void movePopup(final Rectangle bounds) {
if (popup == null) return;
DarkPopupFactory.PopupType popupType = DarkPopupFactory.getPopupType(popup); DarkPopupFactory.PopupType popupType = DarkPopupFactory.getPopupType(popup);
Window w = DarkUIUtil.getWindow(popupComponent); Window w = DarkUIUtil.getWindow(popupComponent);
if (popupType == DarkPopupFactory.PopupType.HEAVY_WEIGHT) { if (popupType == DarkPopupFactory.PopupType.HEAVY_WEIGHT) {

Loading…
Cancel
Save