/src/main/java/org/htmlunit/html/HtmlSelect.java
if ( selectedOptions.get( newLength) ) {
if ( selectedOptions.isEmpty ( ) ) {
@Override public DisplayStyle getDefaultStyleDisplay() { return DisplayStyle.INLINE_BLOCK; } public int getSelectedIndex() { final List<HtmlOption> selectedOptions = getSelectedOptions(); <extra_id_0> return -1; } final List<HtmlOption> allOptions = getOptions(); return allOptions.indexOf(selectedOptions.get(0)); } public void setSelectedIndex(final int index) {