[#5024] Wrong implementation of internal SortFieldList.nulls()

This commit is contained in:
lukaseder 2016-02-02 11:05:51 +01:00
parent 4b210ff417
commit d420940cbd

View File

@ -95,7 +95,7 @@ class SortFieldList extends QueryPartList<SortField<?>> {
final boolean nulls() {
for (SortField<?> field : this)
if (((SortFieldImpl<?>) field).getNullsFirst() ||
((SortFieldImpl<?>) field).getNullsFirst())
((SortFieldImpl<?>) field).getNullsLast())
return true;
return false;