malteseduck / spring-data-marklogic

An implementation of the Spring Data interfaces for the MarkLogic NoSQL database
Apache License 2.0
7 stars 9 forks source link

searchOne throws IndexOutOfBoundsException #20

Closed houseofdouglas closed 7 years ago

houseofdouglas commented 7 years ago

MarkLogicTemplate.java:379 throws IndexOutOfBoundsException when no results are returned.

Should that return a null?

malteseduck commented 7 years ago

Yes, it probably should return a null.