No effective change, move null check on orderBy to prior to parse

This commit is contained in:
rob bygrave
2018-07-15 13:55:51 +12:00
parent 0c41993ce7
commit 02b6ab0f74
2 changed files with 11 additions and 12 deletions
@@ -1,5 +1,6 @@
package io.ebeaninternal.server.query;
import io.ebean.OrderBy;
import io.ebeaninternal.api.BindParams;
import io.ebeaninternal.api.SpiExpressionList;
import io.ebeaninternal.api.SpiQuery;
@@ -329,7 +330,11 @@ public class CQueryPredicates {
private String parseOrderBy() {
return CQueryOrderBy.parse(request.getBeanDescriptor(), query);
OrderBy<?> orderBy = query.getOrderBy();
if (orderBy == null) {
return null;
}
return CQueryOrderBy.parse(request.getBeanDescriptor(), orderBy);
}
/**