fix: Add a few null checks
* TimeBasedFilter * TableAccumulator2 * NonIncGroupByStream
This commit is contained in:
1 parent
e5bc6667e7
commit
d669d24aea
3 files changed
+6
-2
No files matched your search
@@ -89,7 +89,7 @@ namespace BCG {
|
||||
|
||||
if (now > myNextFilter) {
|
||||
// fire event
|
||||
onFilterChange();
|
||||
onFilterChange?.Invoke();
|
||||
|
||||
myNextFilter = now.Add(_filter_period);
|
||||
}
|
||||
|
||||
+4
@@ -96,6 +96,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) {
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace BCG
|
||||
IBlueRowCollection d_rows, a_rows;
|
||||
//BlueDataUtility.compute_differences_id_based(_table, table_0, out d_rows, out a_rows);
|
||||
BlueDataUtility.compute_differences_fast(_table, table_0, out d_rows, out a_rows);
|
||||
_on_update_delegate(_table, a_rows, d_rows);
|
||||
_on_update_delegate?.Invoke(_table, a_rows, d_rows);
|
||||
}
|
||||
|
||||
public void update(Stream[] streams)
|
||||
|
||||
Reference in new issue
Block a user