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

John Hendrikx jhendrikx at openjdk.org
Thu Nov 13 05:32:17 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

Sorry, what exactly are we trying to do here?  Is the problem that intractable that we must add a million debug lines that will be shipped to everyone in the hope someone will debug the problem on their machine?  This stuff belongs on some local branch, not be considered for inclusion in FX IMHO.

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

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


More information about the openjfx-dev mailing list