fix: Add null check to NonIncGroupByStream

This commit is contained in:
John Colvin committed 2024-10-30 19:31:09 +00:00
1 parent 70019c59e5
commit 05715eb489
1 file changed
+4
@@ -72,6 +72,10 @@ namespace BCG {
_timer.Restart();
IBlueRowCollection total_state = _groupby_func.evaluate(grouped_rows);
_timer.Stop();
if (total_state is null) {
Log.Gen.warn("NonIncGroupByStream _groupby_func.evaluate returned null (ignoring last update).");
return;
}
var applyElapsedMs = _timer.ElapsedMilliseconds;
_n_total_fires++;
if (applyElapsedMs >= 50) {