if (selected == null || selected.length > 1)
if (selected == null || selected.length != 1)
getSelectedIndex(){  if (peer != null)    {      ListPeer l = (ListPeer) peer;      selected = l.getSelectedIndexes ();    }  if (selected == null || selected.length > 1)    return -1;  return selected[0];}