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

Fix Unmarshal panicking when called with a nil value #19

Merged
merged 3 commits into from
Nov 6, 2019

Conversation

LeoRiether
Copy link
Contributor

As per #16, Unmarshal panics when called with v=nil, so this PR aims to fix that. The new behavior can be seen at https://play.golang.org/p/uQDTVmAGRk_B, if there's anything missing just let me know

@LeoRiether
Copy link
Contributor Author

I can tackle #17 as well, should I open another PR or just add a commit to this one?

@dqsully
Copy link
Member

dqsully commented Nov 6, 2019

You can go ahead and add it here. Thanks for the help!

@LeoRiether
Copy link
Contributor Author

Done! You can test it at https://play.golang.org/p/1-x9px1Ype7

@dqsully dqsully merged commit 8f44e11 into hjson:master Nov 6, 2019
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

Successfully merging this pull request may close these issues.

2 participants