Oak icon indicating copy to clipboard operation
Oak copied to clipboard

OakMapBuilder must init mandatory fields

Open yonigottesman opened this issue 6 years ago • 0 comments

If i create a new builder like this: OakMapBuilder builder = new OakMapBuilder() .setKeySerializer(stringSer) .setValueSerializer(stringSer) .setComparator(comparator)

I get an exception: java.lang.NullPointerException at com.oath.oak.Insert$BenchmarkState$1.calculateSize(Insert.java:75) at com.oath.oak.Insert$BenchmarkState$1.calculateSize(Insert.java:52) at com.oath.oak.InternalOakMap.<init>(InternalOakMap.java:66) at com.oath.oak.OakMap.<init>(OakMap.java:74) at com.oath.oak.OakMapBuilder.build(OakMapBuilder.java:95) If this field is mandatory, it should be part of the OakMapBuilder constructor.

yonigottesman avatar Oct 16 '18 09:10 yonigottesman