Integrated: 8255248: NullPointerException in JFXPanel due to race condition in HostContainer
Prasanta Sadhukhan
psadhukhan at openjdk.org
Fri Nov 21 03:35:41 UTC 2025
On Mon, 10 Nov 2025 10:37:25 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
This pull request has now been integrated.
Changeset: 33abf5d4
Author: Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/33abf5d4b3d2b90f66581c4e25c542adf285fadd
Stats: 275 lines in 3 files changed: 202 ins; 6 del; 67 mod
8255248: NullPointerException in JFXPanel due to race condition in HostContainer
8334593: Adding, removing and then adding a JFXPanel again leads to NullPointerException
Reviewed-by: angorya, kcr
-------------
PR: https://git.openjdk.org/jfx/pull/1968
More information about the openjfx-dev
mailing list