New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug. NPE While parsing extensions #414

Closed
hugosoares opened this Issue Jul 26, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@hugosoares
Contributor

hugosoares commented Jul 26, 2016

Using HAPI Version 1.6
I am getting an NPE every time I try to parse a Json resource with an invalid extension that does not contain extension.url,

Trace:
at ca.uhn.fhir.parser.JsonParser.parseExtension(JsonParser.java:1331)

Sugestion:
Control the error and throw a ca.uhn.fhir.parser.DataFormatException instead?

@jamesagnew

This comment has been minimized.

Show comment
Hide comment
@jamesagnew

jamesagnew Sep 30, 2016

Owner

Hi Hugo, thanks for the report! I'm checking in a fix now. This will trigger a warning by default now, or throw an error if the StrictErrorHandler is configured on the parser.

Owner

jamesagnew commented Sep 30, 2016

Hi Hugo, thanks for the report! I'm checking in a fix now. This will trigger a warning by default now, or throw an error if the StrictErrorHandler is configured on the parser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment