Skip to content

Commit

Permalink
Fixing NPE when showing a popup without an invoker on Windows 10
Browse files Browse the repository at this point in the history
  • Loading branch information
eduhoribe committed Oct 21, 2023
1 parent 97d2907 commit b8fabd5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,10 @@ private static void resetWindows11Border( Window popupWindow ) {
}

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;
Expand Down

0 comments on commit b8fabd5

Please sign in to comment.