Integrated: 8088594: NullPointerException on showing submenu of a contextmenu
Karthik P K
kpk at openjdk.org
Wed Apr 12 16:15:42 UTC 2023
On Thu, 6 Apr 2023 13:03:04 GMT, Karthik P K <kpk at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: f28896aa
Author: Karthik P K <kpk at openjdk.org>
Committer: Andy Goryachev <angorya at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/f28896aa63592a37e7f78263548f3b2d4f2bc381
Stats: 342 lines in 6 files changed: 324 ins; 17 del; 1 mod
8088594: NullPointerException on showing submenu of a contextmenu
Reviewed-by: aghaisas, angorya
-------------
PR: https://git.openjdk.org/jfx/pull/1082
More information about the openjfx-dev
mailing list