Skip to content

Some strings containing invalid JSON raises a NullPointerException #20

@tom-beck

Description

@tom-beck

Calling new LazyObject("{\"key\":2]") will raise a LazyException.
Calling new LazyObject("{\"key\":2}\"") will raise a NullPointer exception.

It would be great if all parsing issues raised a LazyException.

The stacktrace:

java.lang.NullPointerException
	at me.doubledutch.lazyjson.LazyParser.tokenize(LazyParser.java:263)
	at me.doubledutch.lazyjson.LazyObject.<init>(LazyObject.java:23)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions