NullPointerException when using the [LIKE] filter operator
See original GitHub issueWhenever we are filtering using the LIKE filter operator and the values from the datasource are null, crnk throws a NullPointerException
.
Example:
Let’s say we have a Person resource that has an optional field middleName. Since this field is optional, its value can be null in the database. If we try to get all persons, with a filter on the middle name such as filter[middleName][LIKE]=%john%, crnk throws a null pointer exception. From further investigation, it was identified that the cause of this exception is line 61 in the FilterOperator.java class, since variable value1 had a null value (since the corresponding value inside the database is null).
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
A Null Pointer Exception occurs using filters with Corticon 6.1.2
A Null Pointer Exception occurs in a Rulesheet that is using a filter with the New operator. When the filter is disabled and...
Read more >dataframe filter gives NullPointerException - scala
In Spark 1.6.0 I have a data frame with a column that holds a job description, like:
Read more >nullpointerexception with Operator Filters — oracle-tech
I'm facing a problem when trying to set a session filter on ODI Operator. This message comes out: ODI-26066- AN unexpected error has...
Read more >Null Pointer Exception In Java - GeeksforGeeks
NullPointerException is thrown when program attempts to use an object reference that has the null value.
Read more >Java NullPointerException - Detect, Fix, and Best Practices
java.lang.NullPointerException is an unchecked exception, so we don't have to catch it. The null pointer exceptions can be prevented using null ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
http://www.crnk.io/releases/v3.0/ to be available on jcenter tomorrow. some of the new artifacts first need initial approval
Curiously, do you know when this fix will be published?