Skip to content

Commit

Permalink
chore: fix some quality issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fhussonnois committed Jan 6, 2023
1 parent 92f5050 commit fb0f6a6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ private Optional<TypedValue> readObjectNodeValue(final Node node,
final String nodeName,
final FieldPaths forceArrayFields,
final FieldPaths forceContentFields) {
if (node == null) return Optional.empty();

if (isWhitespaceOrNewLineNodeElement(node) ||
isNodeOfType(node, Node.DOCUMENT_TYPE_NODE)) {
return Optional.empty();
Expand Down

0 comments on commit fb0f6a6

Please sign in to comment.