diff --git a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatPopupFactory.java b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatPopupFactory.java index 013d86b7..fcba1f73 100644 --- a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatPopupFactory.java +++ b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatPopupFactory.java @@ -397,6 +397,10 @@ public class FlatPopupFactory } private static boolean overlapsHeavyWeightComponent( Component owner, Component contents, int x, int y ) { + if( owner == null ) { + return false; + } + Window window = SwingUtilities.getWindowAncestor( owner ); if( window == null ) return false;