fix WeightedLongs function: member values not allocated

This commit is contained in:
ncarvind 2020-09-23 03:19:05 -05:00
parent 563e792ffb
commit 8a4673d7ce

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) {