/src/main/java/org/htmlunit/html/HtmlSelect.java
setSelectedIndex( 0) ; else if ( getSelectedIndex( ) == -1 && !isMultipleSelectEnabled( ) ) {
else if ( getSelectedIndex ( ) == -1 && !isMultipleSelectEnabled ( ) ) { setSelectedIndex ( 0 ) ;
} } public void ensureSelectedIndex() { if (getOptionSize() == 0) { setSelectedIndex(-1); } <extra_id_0> } } public int indexOf(final HtmlOption option) { if (option == null) { return 0; }