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

NPE Parsing contained resource #207

Closed
hugosoares opened this Issue Aug 14, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@hugosoares
Contributor

hugosoares commented Aug 14, 2015

NPE occurs when parsing an contained resource that has wrong "resourceType" property like "resourTypezz".
Problem is on JsonParser.java ln 1121 on the parse children object.
You shoul either catch the expction thrown by JsonObject.getString or use getString with a default value of String.empty (wich seems like what you were expecting the result to be on the first place).

The validation outcome should then be "Missing 'resourceType' from resource"

@jamesagnew

This comment has been minimized.

Owner

jamesagnew commented Aug 18, 2015

Thanks for reporting! Will check in a fix shortly!

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