Skip to content

Itermittent NPE in remove #76

@cpotter1

Description

@cpotter1

In DataService, on line 227, seeing this problem periodically.

java.lang.NullPointerException
at org.dizitart.no2.internals.DataService.remove(DataService.java:228)
at org.dizitart.no2.internals.NitriteService.remove(NitriteService.java:372)
at org.dizitart.no2.internals.DefaultNitriteCollection.remove(DefaultNitriteCollection.java:360)
at org.dizitart.no2.internals.DefaultNitriteCollection.remove(DefaultNitriteCollection.java:349)
at

Looks like you are not checking for null on "removed" before calling getRevision:
Document removed = underlyingMap.remove(nitriteId);
int rev = removed.getRevision();

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions