Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OrderBy throws NullPointerException using EclipseLink JPA #292

Open
pkfryer opened this issue Feb 1, 2021 · 0 comments
Open

OrderBy throws NullPointerException using EclipseLink JPA #292

pkfryer opened this issue Feb 1, 2021 · 0 comments

Comments

@pkfryer
Copy link

pkfryer commented Feb 1, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant