diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2022-02-25 14:49:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-25 14:49:53 +0200 |
commit | e376fb8ca490b1e9b788fa3cd107e488d9a36028 (patch) | |
tree | ec5ee072a6f89cb1579c1c6e2fad3bace1b430d2 /web | |
parent | b94153cfa4cc384d5e5595d07317f75901668afb (diff) |
Add a check to make sure internal chart state is initialized
Diffstat (limited to 'web')
-rw-r--r-- | web/api/formatters/rrd2json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/api/formatters/rrd2json.c b/web/api/formatters/rrd2json.c index b9dd72084e..ad0001c73e 100644 --- a/web/api/formatters/rrd2json.c +++ b/web/api/formatters/rrd2json.c @@ -229,7 +229,7 @@ int rrdset2anything_api_v1( return HTTP_RESP_INTERNAL_SERVER_ERROR; } - if (st && st->state->is_ar_chart) + if (st && st->state && st->state->is_ar_chart) ml_process_rrdr(r, max_anomaly_rates); RRDDIM *temp_rd = context_param_list ? context_param_list->rd : NULL; |