Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NullPointerException when using the [LIKE] filter operator

See original GitHub issue

Whenever we are filtering using the LIKE filter operator and the values from the datasource are null, crnk throws a NullPointerException.


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 class, since variable value1 had a null value (since the corresponding value inside the database is null).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

remmeiercommented, Apr 14, 2019 to be available on jcenter tomorrow. some of the new artifacts first need initial approval

Koshuxcommented, Apr 12, 2019

Curiously, do you know when this fix will be published?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found