mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 22:10:54 +03:00
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)
This commit is contained in:
@@ -1,6 +1,14 @@
|
|||||||
FlatLaf Change Log
|
FlatLaf Change Log
|
||||||
==================
|
==================
|
||||||
|
|
||||||
|
## 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)
|
||||||
|
|
||||||
|
|
||||||
## 3.2.3
|
## 3.2.3
|
||||||
|
|
||||||
#### Fixed bugs
|
#### Fixed bugs
|
||||||
|
|||||||
@@ -438,7 +438,7 @@ public class FlatPopupFactory
|
|||||||
*/
|
*/
|
||||||
private static void fixLinuxWaylandJava21focusIssue( Component owner ) {
|
private static void fixLinuxWaylandJava21focusIssue( Component owner ) {
|
||||||
// only necessary on Linux when running in Java 21+
|
// only necessary on Linux when running in Java 21+
|
||||||
if( !SystemInfo.isLinux || SystemInfo.javaVersion < SystemInfo.toVersion( 21, 0, 0, 0 ) )
|
if( owner == null || !SystemInfo.isLinux || SystemInfo.javaVersion < SystemInfo.toVersion( 21, 0, 0, 0 ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// get window
|
// get window
|
||||||
|
|||||||
Reference in New Issue
Block a user