Merge PR #754: Fixing NPE when showing a popup without an invoker on Windows 10

This commit is contained in:
Karl Tauber
2023-10-21 23:52:02 +02:00
2 changed files with 13 additions and 2 deletions

View File

@@ -397,6 +397,9 @@ 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;