On Sat, 7 Nov 2026 14:50:35 GMT, Christopher Schnick <[email protected]> 
wrote:

> I just encountered an NPE when upgrading to a new version due to this change. 
> I am not sure whether this an issue, just letting you know that something 
> like this breaks now as the skin is null now:
> 
> ```
> contextMenu.addEventFilter(Menu.ON_SHOWING, e -> {
>             Node content = contextMenu.getSkin().getNode();
> });
> ```

Interesting. Before, we applied CSS more early by accident, which in turn made 
the skin creation early as well. I think this is worth to fix.
Can you create an issue? I can have a look, because I checked 
https://github.com/openjdk/jfx/pull/2215 yesterday and I think there is better 
solution to this and your issue alltogether.

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

PR Comment: https://git.openjdk.org/jfx/pull/2213#issuecomment-6747759549

Reply via email to