louth/play-mongo — Issue #4: first() on empty result set throws IndexOutOfBoundsException
Author: vy
Created: 2012-02-23 14:36:33+00:00
State: open

`MongoCursor.first()` is defined as follows.

```java
public T first(){
return (T)fetch(1,1).get(0);
}
```

Hence, calling `first()` on an empty result set causes a `IndexOutOfBoundsException`.