mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 06:57:13 -06: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:
@@ -438,7 +438,7 @@ public class FlatPopupFactory
|
||||
*/
|
||||
private static void fixLinuxWaylandJava21focusIssue( Component owner ) {
|
||||
// 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;
|
||||
|
||||
// get window
|
||||
|
||||
Reference in New Issue
Block a user