Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
istudens committed Jan 30, 2020
1 parent edf82d1 commit 08af9fd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ public JsonMappingException(Closeable processor, String msg) {
public JsonMappingException(Closeable processor, String msg, Throwable problem) {
super(msg, problem);
_processor = processor;
if (processor instanceof JsonParser) {
if (problem instanceof JsonProcessingException) {
_location = ((JsonProcessingException) problem).getLocation();
} else if (processor instanceof JsonParser) {
_location = ((JsonParser) processor).getTokenLocation();
}
}
Expand Down

0 comments on commit 08af9fd

Please sign in to comment.