Skip to content

Commit

Permalink
KYLIN-1911 NPE when extended column has NULL value
Browse files Browse the repository at this point in the history
  • Loading branch information
binmahone committed Jul 24, 2016
1 parent 543e9f9 commit 1f79762
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ public IAdvMeasureFiller getAdvancedTupleFiller(FunctionDesc function, TupleInfo

@Override
public void reload(Object measureValue) {
if (measureValue == null) {
value = null;
return;
}

ByteArray byteArray = (ByteArray) measureValue;
//the array in ByteArray is guaranteed to be completed owned by the ByteArray
value = Bytes.toString(byteArray.array());
Expand Down

0 comments on commit 1f79762

Please sign in to comment.