private void ensureCapacity(long index, List<Object> list) {
            while (list.size() <= index)
                list.add(list.size(), null);
        }
Fill the given list with nulls if necessary to make sure it has a (possibly null) value at the given index
vespajlib/src/main/java/com/yahoo/tensor/IndexedTensor.java