Skip to content

Commit

Permalink
feat: create implementation to value util working with null
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed Nov 18, 2023
1 parent 5c346f3 commit 4d4380e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ private static List<Object> getObjects(Object val) {
}

private static Object getObject(Object val) {
if (VALUE_WRITER.test(val.getClass())) {
if (val == null) {
return null;
} else if (VALUE_WRITER.test(val.getClass())) {
return VALUE_WRITER.write(val);
}
return val;
Expand Down

0 comments on commit 4d4380e

Please sign in to comment.