Skip to content

Commit

Permalink
should return null if invalid type of array
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Apr 13, 2024
1 parent 50a852c commit 8dec04b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public Object convert(Object raw) {
.map(converter::convert)
.toArray(Object[]::new);
} else {
return new Object[0];
return null;
}
}

Expand All @@ -45,7 +45,7 @@ public Object convertToRaw(Object value) {
.map(converter::convertToRaw)
.toArray();
} else {
return new Object[0];
return null;
}
}
});
Expand Down

0 comments on commit 8dec04b

Please sign in to comment.