Skip to content
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
Closed

Bug. NPE While parsing extensions #414

hugosoares opened this issue Jul 26, 2016 · 1 comment

Comments

@hugosoares
Copy link
Contributor

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
Copy link
Collaborator

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants