Skip to content

Commit

Permalink
fix crash when reading nested Nullable columns
Browse files Browse the repository at this point in the history
  • Loading branch information
v5r committed Nov 25, 2017
1 parent 0bbdd31 commit 698fb56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/result.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class ScalarConverter : public Converter {
convertEntries<CT,RT>(in, nullCol, out, offset, start, end);
});
}

void processCol(ch::ColumnRef col, Rcpp::List &target, size_t targetIdx,
NullCol nullCol) {
auto typedCol = col->As<CT>();
Expand All @@ -126,7 +127,7 @@ class NullableConverter : public Converter {

void processCol(ch::ColumnRef col, Rcpp::List &target, size_t targetIdx, NullCol) {
auto typedCol = col->As<CT>();
processCol(typedCol->Nested(), target, targetIdx, typedCol);
elemConverter->processCol(typedCol->Nested(), target, targetIdx, typedCol);
}
};

Expand Down

0 comments on commit 698fb56

Please sign in to comment.