graphql-jpa-query
graphql-jpa-query copied to clipboard
OrderBy throws NullPointerException using EclipseLink JPA
OrderBy in a query throws an exception. EclipseLink appears to have a bug. The getOrderList implementation of CriteriaQuery returns null when uninitialised rather than the specifications empty array.
The getOrderList is used as constructor initialisation of new ArrayList. If we add a check for null before using can prevent this exception.