Skip to content

Commit

Permalink
handling null value of datatype Double #95
Browse files Browse the repository at this point in the history
  • Loading branch information
navinrathore committed Jan 12, 2022
1 parent 73b7711 commit 2cc04dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/zingg/hash/Round.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public Round() {

@Override
public Long call(Double field) {
return Math.round(field);
return field == null ? null : Math.round(field);
}

@Override
Expand Down

0 comments on commit 2cc04dd

Please sign in to comment.