DictionaryValuesWriter.java will throw an exception when encodedValues is null. encodedValues should be tested for null.