From bb6b8378d3a6fba18f021b27e494ec9b3b805a78 Mon Sep 17 00:00:00 2001 From: Owen Stephens Date: Mon, 9 Oct 2017 17:13:43 +0100 Subject: [PATCH] Ensure _max is never less than _min --- main/src/com/google/refine/browsing/util/NumericBinIndex.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/com/google/refine/browsing/util/NumericBinIndex.java b/main/src/com/google/refine/browsing/util/NumericBinIndex.java index 2ed4e1b18..1f3a3c4f3 100644 --- a/main/src/com/google/refine/browsing/util/NumericBinIndex.java +++ b/main/src/com/google/refine/browsing/util/NumericBinIndex.java @@ -87,7 +87,7 @@ abstract public class NumericBinIndex { if (_min >= _max) { _step = 1; _min = Math.min(_min, _max); - _max = _step; + _max = _min+_step; _bins = new int[1]; return;