RFR: 8088594: NullPointerException on showing submenu of a contextmenu [v2]

Karthik P K kpk at openjdk.org
Mon Apr 10 08:32:33 UTC 2023


> When custom skin was loaded, the listeners added in `ContextMenuContent` class while loading the default skin were not removed. This was causing the NPE when outdated listeners were invoked.
> 
> Updated the code to dispose listeners in the `dispose` method of `ContextMenuSkin` so that when new skin is loaded, listeners added in the old skin are removed.
> 
> Added system test to validate the fix.

Karthik P K has updated the pull request incrementally with one additional commit since the last revision:

  Renamed package to match coding convention

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

Changes:
  - all: https://git.openjdk.org/jfx/pull/1082/files
  - new: https://git.openjdk.org/jfx/pull/1082/files/5b496790..1e91b094

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jfx&pr=1082&range=01
 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=1082&range=00-01

  Stats: 2 lines in 2 files changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jfx/pull/1082.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1082/head:pull/1082

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


More information about the openjfx-dev mailing list