This patch adds a call to checkResultSet() that was missing fromAbstractJdbc2ResultSet.getArray(), resulting in NPEs orArrayIndexOutOfBounds on a bad use of getArray().
-O