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

Kevin Rushforth kcr at openjdk.org
Wed Nov 19 17:14:57 UTC 2025


On Wed, 19 Nov 2025 16:30:01 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

tests/system/src/test/java/test/javafx/embed/swing/JFXPanelNPETest.java line 125:

> 123:     }
> 124: }
> 125: 

Very minor: there is an extra blank line here that you might remove.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1968#discussion_r2542888149


More information about the openjfx-dev mailing list