Closed GoogleCodeExporter closed 9 years ago
This bug seems to affect not only queries of @Id fields, but any "in" query on
non-reference, single-value fields.
My analysis:
Mapper#toMongoObject tries to find out whether the field that is used in the
query is a reference field, or a multi-value field with reference-type values.
Checking for the latter is done when the query value is an Iterable, but causes
an NPE when the field is a single-value field and thus has no sub-type to check.
If my analysis is correct, you can apply the attached patch. It works for me,
but I'm not sure I understood all its consequences.
Original comment by sdeit...@googlemail.com
on 20 Sep 2011 at 9:29
Attachments:
Original comment by scotthernandez
on 20 Sep 2011 at 2:25
Original issue reported on code.google.com by
sdeit...@googlemail.com
on 29 Aug 2011 at 12:54