On Thu, 6 Apr 2023 13:03:04 GMT, Karthik P K <k...@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.

@andy-goryachev-oracle can you also review this?

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

PR Comment: https://git.openjdk.org/jfx/pull/1082#issuecomment-1500252211

Reply via email to