omnifaces / omnipersistence

Utilities for JPA, JDBC and DataSources
Other
31 stars 12 forks source link

ValueBasedPaging fails when sorted by a column containing NULL values #27

Closed Edubits closed 5 years ago

Edubits commented 5 years ago

When using ValueBasedPaging the following exception will be thrown when the last entity has a NULL value for the sorted column:

Exception level 1: java.lang.NullPointerException
        at org.omnifaces.persistence.service.UncheckedParameterBuilder.create(UncheckedParameterBuilder.java:42)
        at org.omnifaces.persistence.service.BaseEntityService.buildValueBasedPagingPredicate(BaseEntityService.java:1882)
        at org.omnifaces.persistence.service.BaseEntityService.buildRestrictions(BaseEntityService.java:1858)