graphql-jpa-query icon indicating copy to clipboard operation
graphql-jpa-query copied to clipboard

OrderBy throws NullPointerException using EclipseLink JPA

Open pkfryer opened this issue 4 years ago • 0 comments

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.

pkfryer avatar Feb 01 '21 03:02 pkfryer