From d6c08d10982f508f3b3bfa6f0507890e75b5f678 Mon Sep 17 00:00:00 2001 From: weisj Date: Wed, 5 Aug 2020 16:13:51 +0200 Subject: [PATCH] Ensure popup isn't null when moving. Fixes #202 --- .../github/weisj/darklaf/ui/cell/hint/CellHintPopupListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/com/github/weisj/darklaf/ui/cell/hint/CellHintPopupListener.java b/core/src/main/java/com/github/weisj/darklaf/ui/cell/hint/CellHintPopupListener.java index 78146f3d..638e04ba 100644 --- a/core/src/main/java/com/github/weisj/darklaf/ui/cell/hint/CellHintPopupListener.java +++ b/core/src/main/java/com/github/weisj/darklaf/ui/cell/hint/CellHintPopupListener.java @@ -248,6 +248,7 @@ public class CellHintPopupListener extends MouseInputAd } private void movePopup(final Rectangle bounds) { + if (popup == null) return; DarkPopupFactory.PopupType popupType = DarkPopupFactory.getPopupType(popup); Window w = DarkUIUtil.getWindow(popupComponent); if (popupType == DarkPopupFactory.PopupType.HEAVY_WEIGHT) {