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

Prasanta Sadhukhan psadhukhan at openjdk.org
Tue Jul 25 05:30:09 UTC 2023


> Due to transient datatype of scenePeer, it can become null which can result in NPE in scenarios where scene is continuously been reset and set, which warrants a null check, as is done in other places for the same variable.

Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision:

 - Locking for all shared resource between Swing and FX thread
 - Locking for all shared resource between Swing and FX thread

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

Changes:
  - all: https://git.openjdk.org/jfx/pull/1178/files
  - new: https://git.openjdk.org/jfx/pull/1178/files/f078f0a2..595f40d6

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jfx&pr=1178&range=04
 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=1178&range=03-04

  Stats: 116 lines in 1 file changed: 71 ins; 0 del; 45 mod
  Patch: https://git.openjdk.org/jfx/pull/1178.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1178/head:pull/1178

PR: https://git.openjdk.org/jfx/pull/1178


More information about the openjfx-dev mailing list