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

Binding invalid Currency gives nonsense at end of the message #590

Closed
Jerbell opened this issue Oct 21, 2014 · 0 comments
Closed

Binding invalid Currency gives nonsense at end of the message #590

Jerbell opened this issue Oct 21, 2014 · 0 comments

Comments

@Jerbell
Copy link

Jerbell commented Oct 21, 2014

This has been an issue since 2.3.4 (and 2.4.0 presumably). It was put in for fix #444.
An invalid Currency used to say:
"Can not construct instance of java.util.Currency from String value 'XYZ': not a valid textual representation"
Now it says:
"Can not construct instance of java.util.Currency from String value 'XYZ': not a valid textual representation problem: null"
The code is in com.fasterxml.jackson.databind.deser.std.FromStringDeserializer.
Perhaps a simple fix is to check:
if (cause != null && cause.getMessage() != null) { msg += " problem: "+cause.getMessage(); }
adding in: "&& cause.getMessage() != null"

cowtowncoder added a commit that referenced this issue Oct 21, 2014
cowtowncoder added a commit that referenced this issue Oct 21, 2014
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

No branches or pull requests

1 participant