Repository navigation
Conversation
Owner
|
I'm kind of surprise all other tests passed. I feel is going to break a lot if we merge on 4.x., I was planning to add it on 5.x which a major release. |
Author
|
Fair, it does change what templates see for keys that are present with a null value, so 5.x is the right place for it. The |
Owner
|
need to change the version on master. 5.x branch is not yet on github and this change is included already. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
It addresses the behavior reported in issue #1141.
Summary of the fix
fix: MapValueResolver resolves present-but-null keys to null instead of UNRESOLVED
Testing
The targeted tests for the handlebars.java MapValueResolver change pass locally. The tests in
handlebars/src/test/java/com/github/jknack/handlebars/issues/Issue1141.javafail without the fix in the handlebars.java MapValueResolver change (checked by reverting the source changes). The new test handlebars/src/test/java/com/github/jknack/handlebars/issues/Issue1141.java did not run here: no test runner for it was available.Fixes #1141