RFR: 8371386: Fix potential NPE in SwingNode [v2]
Prasanta Sadhukhan
psadhukhan at openjdk.org
Fri Nov 7 03:11:41 UTC 2025
On Thu, 6 Nov 2025 20:41:49 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
>> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Review comment
>
> modules/javafx.swing/src/main/java/javafx/embed/swing/SwingNode.java line 557:
>
>> 555:
>> 556: private final EventHandler<FocusUngrabEvent> ungrabHandler = event -> {
>> 557: var hFrame = lwFrame;
>
> this can be pushed down to L559 - no need to create/assign if not needed.
ok
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1965#discussion_r2501528034
More information about the openjfx-dev
mailing list