On Wed, 14 Oct 2020 10:34:54 GMT, Jeanette Winzenburg <[email protected]> 
wrote:

> issue is a listener in ChoiceBoxSkin that wasn't removed (forgotten in my 
> first cleanup ;)
> 
> Removed, un-ignored test that failed/passed before/after the fix

modules/javafx.controls/src/main/java/javafx/scene/control/skin/ChoiceBoxSkin.java
 line 209:

> 207:     /** {@inheritDoc} */
> 208:     @Override public void dispose() {
> 209:         if (getSkinnable() == null) return;

This will short-circuit the rest of the method, including the call to 
`super.dispose()`, if `getSkinnable()` is null.
Are there any cases where this might miss some needed cleanup?

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

PR: https://git.openjdk.java.net/jfx/pull/320

Reply via email to