Passing empty collections to derived finder methods lead to a NullPointerException
.
#2301
Labels
type: bug
A general bug
It seems to raise an exception when a provided parameter is an empty iterable (I have only tried with
Set
actually, but looking at the code that raises the error, it's likely the same thing with allIterable<?>
).Given the following example (the database does not actually matter)
I have the following stacktrace
The error actually seem to be in
org.springframework.data.neo4j.core.TemplateSupport.findCommonElementType
which returns anull
class when the collection is empty.I'm testing using the latest
6.1.2
. Hope this helps!The text was updated successfully, but these errors were encountered: