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

Kevin Rushforth kcr at openjdk.org
Thu Nov 20 13:52:13 UTC 2025


On Thu, 20 Nov 2025 12:05:37 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:
> 
>  - Rename var w.r.t the accessing thread for easy perusal
>  - comment fix

LGTM

@prsadhuk Please file the follow-on bug as discussed and add a comment with the bug ID.

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

Marked as reviewed by kcr (Lead).

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


More information about the openjfx-dev mailing list