Skip to content

Commit

Permalink
Fix nullpointers ignoring types having null size.
Browse files Browse the repository at this point in the history
  • Loading branch information
filipelautert committed Mar 31, 2023
1 parent eaf8ca2 commit c4c391c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ private void handleSizeChange(Column column, ObjectDifferences differences, Diff
}
Integer originalSize = ((DataType) d.getReferenceValue()).getColumnSize();
Integer newSize = ((DataType) d.getComparedValue()).getColumnSize();
if ((newSize == null && originalSize == null) ||
(newSize != null && newSize.equals(originalSize))) {
if (newSize == null || originalSize == null || newSize.equals(originalSize)) {
differences.removeDifference(d.getField());
}
}
Expand Down

0 comments on commit c4c391c

Please sign in to comment.