When there are no rows, both query.list() and criteria.list() are returning empty list instead of a null value.
query.list()
criteria.list()
null
What is t
It is consistant: a list is returned with all results, whether there are any or not.