commit 4dedd235d2ba42815c98f336d1be01283bc7c983
parent 3c358444a40466762cf10d20784b3a64fb984d2a
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 20 Nov 2024 23:51:31 +0100
allow new_rules to be NULL, can happen if AML program crashed (see #9347)
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/exchangedb/pg_insert_kyc_measure_result.c b/src/exchangedb/pg_insert_kyc_measure_result.c
@@ -74,7 +74,9 @@ TEH_PG_insert_kyc_measure_result (
NULL == account_properties
? GNUNET_PQ_query_param_null ()
: TALER_PQ_query_param_json (account_properties),
- TALER_PQ_query_param_json (new_rules),
+ NULL == new_rules
+ ? GNUNET_PQ_query_param_null ()
+ : TALER_PQ_query_param_json (new_rules),
GNUNET_PQ_query_param_array_ptrs_string (num_events,
events,
pg->conn),