-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Guard Mapper.write against null writer
A `null` writer passed to the `Mapper.write` method, sensibly, throws an NPE upon flushing the buffer out. However, since the flushing occurs at a later time, debugging that this occurred is challenging. Thus, this commit implements a fail-fast `null` guard.
- Loading branch information
1 parent
e41f969
commit 559d492
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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