Skip to content

Configuration: Item Deserializer - missing period field throws NullPointerException #2

@karel-rehor

Description

@karel-rehor

Tried to use a yaml configuration file with an item missing the "period" field. This resulted in the following exception.

java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "com.fasterxml.jackson.databind.JsonNode.asLong()" because the return value of "com.fasterxml.jackson.databind.JsonNode.get(String)" is null

Should either use a default period value, or throw a more informative exception, since reading the yaml is not always intuitive or obvious what is missing.

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