mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-07 22:40:53 +03:00
Fixing NPE when showing a popup without an invoker on Windows 10
This commit is contained in:
@@ -397,6 +397,10 @@ public class FlatPopupFactory
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static boolean overlapsHeavyWeightComponent( Component owner, Component contents, int x, int y ) {
|
private static boolean overlapsHeavyWeightComponent( Component owner, Component contents, int x, int y ) {
|
||||||
|
if( owner == null ) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
Window window = SwingUtilities.getWindowAncestor( owner );
|
Window window = SwingUtilities.getWindowAncestor( owner );
|
||||||
if( window == null )
|
if( window == null )
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user