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

Prasanta Sadhukhan psadhukhan at openjdk.org
Thu Nov 20 12:05:40 UTC 2025


On Thu, 20 Nov 2025 03:35:12 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 one additional commit since the last revision:
> 
>   Review comment. Redundant null check removed, add thread wait for both AWT, FX threads

Updated PR to rename var w.r.t accessing thread

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

PR Comment: https://git.openjdk.org/jfx/pull/1968#issuecomment-3557650518


More information about the openjfx-dev mailing list