jfilter icon indicating copy to clipboard operation
jfilter copied to clipboard

null bean evaluation

Open leontyevdv opened this issue 8 years ago • 2 comments

Hello Romain! Thanks for this useful library! I use it for filtering rows in Swing table and have a trouble. Some getters return null value. E.g Double getSomeValue() method may return null value. Method fr.inria.jfilter.operators.ComparableFilter#eval rises NPE while executes. Can you fix it? Thanks!

Another one question: Does your library support null-filtering? I'd like to filter beans which has NULL in particular fields.

leontyevdv avatar Dec 20 '17 14:12 leontyevdv

Thanks for reporting an issue. Would that be possible for you to share a unit test exposing this incorrect behaviour? Thanks.

rouvoy avatar Dec 20 '17 16:12 rouvoy

Sent you PR with test and bug fix

leontyevdv avatar Dec 20 '17 18:12 leontyevdv