Skip to content

Commit

Permalink
Issue #2 - Return null instead of failing with a NPE
Browse files Browse the repository at this point in the history
(cherry picked from commit 67038fc0d5ee87ed46f1076b7ec4506af331f2bf)
  • Loading branch information
martin-g committed Oct 9, 2014
1 parent aacbe83 commit 41e713b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -160,15 +160,15 @@ private BigDecimal maxOf(BigDecimal max, final BigDecimal summaryMax) {
? summaryMax != null
? max.max(summaryMax)
: max
: BigDecimal.ZERO;
: null;
}

private BigDecimal minOf(BigDecimal min, final BigDecimal summaryMin) {
return min != null
? summaryMin != null
? min.min(summaryMin)
: min
: BigDecimal.ZERO;
: null;
}

@Override
Expand Down

0 comments on commit 41e713b

Please sign in to comment.