/src/main/java/org/htmlunit/html/HtmlSelect.java
if ( lastSelected.isSelected( ) ) {
if ( option.isSelected ( ) ) {
else { result = new ArrayList<>(1); HtmlOption lastSelected = null; for (final HtmlElement element : getHtmlElementDescendants()) { if (element instanceof HtmlOption) { final HtmlOption option = (HtmlOption) element; <extra_id_0> lastSelected = option; } } } if (lastSelected != null) { result.add(lastSelected);