RFR: 8088594: NullPointerException on showing submenu of a contextmenu [v3]
Karthik P K
kpk at openjdk.org
Tue Apr 11 12:18:52 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 two additional commits since the last revision:
- Add space between if and (
- Address review comments
-------------
Changes:
- all: https://git.openjdk.org/jfx/pull/1082/files
- new: https://git.openjdk.org/jfx/pull/1082/files/1e91b094..cba6a855
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jfx&pr=1082&range=02
- incr: https://webrevs.openjdk.org/?repo=jfx&pr=1082&range=01-02
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