Empty ResultSet returns Collection with single Null element
This post has NOT been accepted by the mailing list yet.
I have an out param (jdbcType=CURSOR, javaType=java.sql.ResultSet, mode=OUT) that is mapped to a resultMap. When the resultset is empty, a Collection with a single null element is returned. Hence we are having to not only check for CollectionUtils.isEmpty but also check if the first element is not null and is undesirable.
Reviewing the default ResultSetHandler and ResultHandler implementations;