Skip to content

Commit

Permalink
[ALS-4957] Handle finalMap zero case
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcolon021 committed Nov 2, 2023
1 parent 3493d03 commit 55fb074
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ private static Map<String, Integer> createLabelsForBins(Map<Integer, Integer> re

finalMap.remove(label);
finalMap.put(newLabel + " +", lastCount);
} else if (lastCount != null) {
} else if (lastCount != null && finalMap.size() == 1) {
// If there is only one bin
// Remove the range and just use the max value
finalMap.remove(label);
Expand Down

0 comments on commit 55fb074

Please sign in to comment.