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

NullPointer from some HalLink methods if created from URI #15

Closed
ghost opened this issue Jun 16, 2016 · 5 comments
Closed

NullPointer from some HalLink methods if created from URI #15

ghost opened this issue Jun 16, 2016 · 5 comments
Assignees

Comments

@ghost
Copy link

ghost commented Jun 16, 2016

When a HalLink is created from a URI it uses a Boolean member variable templated to track this by setting it to null

When later calling isTemplated or something that calls it (getHrefAsUri or getHrefAsTemplate) a null pointer is thrown as isTemplated's signature tries to return a primitive boolean

@nrktkt
Copy link
Member

nrktkt commented Jun 16, 2016

That's no good! Nice catch. I'll patch that shortly.

@ghost
Copy link
Author

ghost commented Jun 16, 2016

Ace! Thanks for the swift response

nrktkt added a commit that referenced this issue Jun 16, 2016
Only isTemplated is optional for now, update of remaining fields and more extensive optional jackson testing pending.
nrktkt added a commit that referenced this issue Jun 16, 2016
Only isTemplated is optional for now, update of remaining fields and more extensive optional jackson testing pending.
nrktkt added a commit that referenced this issue Jun 17, 2016
nrktkt added a commit that referenced this issue Jun 17, 2016
@nrktkt nrktkt closed this as completed in f180ce9 Jun 17, 2016
@nrktkt
Copy link
Member

nrktkt commented Jun 17, 2016

@at-alexb as a follow up, can you confirm that the new version (v1r3t2) fixes the issue for you?

@ghost
Copy link
Author

ghost commented Jun 17, 2016

Yes, confirmed issue fixed in v1r3t2

@nrktkt
Copy link
Member

nrktkt commented Jun 17, 2016

@at-alexb great! thanks!

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

No branches or pull requests

1 participant