Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Conversation

@julia-godoy
Copy link
Contributor

@julia-godoy julia-godoy commented Jul 9, 2019

Description

This PR checks for unmarshal errors before trying to set the timestamp on the JSON map

Why is this PR needed?

The PR is needed to avoid nil pointer exceptions when dealing with malformed JSONs

Checklist

  • Branch is named acoording to standards (feature/*, fix/*, hotfix/*)
  • Code compiles correctly
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Bump project version, if this adds a new feature
  • Extended the README / documentation, if necessary

Copy link
Member

@racevedoo racevedoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you create tests for this case? Thanks!

@racevedoo
Copy link
Member

Closes #9

@julia-godoy
Copy link
Contributor Author

Could you create tests for this case? Thanks!

Sure! I just added a test case for malformed Json.

Copy link
Member

@racevedoo racevedoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to go

@julia-godoy julia-godoy merged commit 9b10e2b into master Jul 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants