fix: Add nullcheck in FlattenTableSeries

This commit is contained in:
John Colvin committed 2023-03-20 13:26:43 -04:00
1 parent 4f772a1d57
commit 1dd3d39a21
1 file changed
+1
@@ -101,6 +101,7 @@ namespace bts.api.core {
static TableUpdate<T, TKey> bridge(
TableUpdate<T, TKey> curr_table, TableUpdate<T, TKey> next_table) {
curr_table ??= TableUpdate<T, TKey>.mk_empty(next_table.key_extractor);
var bd = curr_table.to_builder();
var removed = curr_table.state.Keys
.Where(k => !next_table.state.ContainsKey(k));