RFR: 8255248: NullPointerException in JFXPanel due to race condition in HostContainer [v3]

Andy Goryachev angorya at openjdk.org
Thu Nov 13 17:57:58 UTC 2025


On Thu, 13 Nov 2025 03:28:51 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> NPE is seen while accessing transient "scenePeer" variable between reads..
>> Fix is made to store it in a temp variable rather than reading it twice since the value can change between successive reads in many places it is accessed.
>> Also some debug logs added to be enabled via `jfxpanel.debug` property
>
> Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - debug log fix
>  - debug log fix

The latest changes look good to me.
I am also curious why we need these debug prints in the first place.

-------------

Marked as reviewed by angorya (Reviewer).

PR Review: https://git.openjdk.org/jfx/pull/1968#pullrequestreview-3460990786


More information about the openjfx-dev mailing list