Skip to content

NullPointerException with null argument when using IgnoreCase [DATAMONGO-1608] #2479

Closed
@spring-projects-issues

Description

@spring-projects-issues

Edward Prentice opened DATAMONGO-1608 and commented

findByName(null); // returns null
findByNameIgnoreCase(null) // throws NPE from MongoQueryCreator:302

Demonstration based off a spring-data example app

StackOverflow question asking how to handle this

Sorry I might have got the version wrong. I don't know what "GA" or "M1" mean! Sorry!

How can I help?


Affects: 1.10 GA (Ingalls), 1.9.7 (Hopper SR7)

Reference URL: EdwardPrentice/gs-accessing-data-mongodb@f2aec61

Issue Links:

  • DATAMONGO-2424 IllegalArgumentException with null argument when using IgnoreCase

Referenced from: pull request #439

Backported to: 1.10.1 (Ingalls SR1), 1.9.8 (Hopper SR8)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions