/src/main/java/org/htmlunit/html/HtmlSelect.java
if ( option == null) {   return 0; }
[Delete]
return allOptions.indexOf(selectedOptions.get(0)); } public void setSelectedIndex(final int index) { for (final HtmlOption itemToUnSelect : getSelectedOptions()) { setSelectedAttribute(itemToUnSelect, false); } <extra_id_0> return; } final List<HtmlOption> allOptions = getOptions(); if (index < allOptions.size()) { final HtmlOption itemToSelect = allOptions.get(index); setSelectedAttribute(itemToSelect, true, false, true, false, true);