eclipse / org.eclipse.sensinact.gateway

Eclipse Public License 2.0
6 stars 12 forks source link

Added tests for null parsed filter when creating a predicate #416

Closed tcalmant closed 3 weeks ago

tcalmant commented 3 weeks ago

prepareFilter() can return null if the query filter string wasn't blank but the filter does nothing (empty filter in LDAP, ...). This PR avoids an Exception to be thrown as Predicate.and() fails when the given predicate is null.