Skip to content

Commit

Permalink
Merge pull request #126 from navinrathore/zFloatTypeSupport
Browse files Browse the repository at this point in the history
handling null value of datatype Double #95
  • Loading branch information
sonalgoyal committed Jan 13, 2022
2 parents 21dde93 + 2cc04dd commit fcc99bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/zingg/hash/Round.java
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 fcc99bd

Please sign in to comment.