Skip to content

Commit

Permalink
Merge PR #754: Fixing NPE when showing a popup without an invoker on …
Browse files Browse the repository at this point in the history
…Windows 10
  • Loading branch information
DevCharly committed Oct 21, 2023
2 parents 97d2907 + b8fabd5 commit a997820
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
FlatLaf Change Log
==================

## 3.2.5

#### Fixed bugs

- Popup: Fixed NPE if popup invoker is `null` on Windows 10. (issue #753;
regression in 3.2.1 in fix for #626)


## 3.2.4

#### Fixed bugs

- Popup: Fixed potential NPE in (unusual) case that the popup invoker is `null`
(only on Linux with Wayland and Java 21; regression in 3.2.3). (issue #752)
- Popup: Fixed NPE if popup invoker is `null` on Linux with Wayland and Java 21.
(issue #752; regression in 3.2.3)


## 3.2.3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,9 @@ 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 a997820

Please sign in to comment.