Merge pull request #207 from ncarvind/issue-206

fix WeightedLongs function: member values not allocated
This commit is contained in:
Jonathan Shook
2020-09-23 12:20:41 -05:00
committed by GitHub

View File

@@ -39,6 +39,7 @@ public class WeightedLongs implements LongFunction<Long> {
String[] fragments = new String[pairs.length];
List<Double> parsedWeights = new ArrayList<>();
values = new long[pairs.length];
for (int i = 0; i < pairs.length; i++) {
String[] pair = pairs[i].split(":", 2);
if (pair.length == 2) {