summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-11-21 00:53:03 +0100
committerChristian Grothoff <christian@grothoff.org>2022-11-21 00:53:03 +0100
commite82cbd05b6b2c52f4053f3347ac01b0d0ed905af (patch)
treeb5929c4c9f9dec5abcb7da4239e0ac6b16e48f01
parenta400aa0fc124999446d57d6196b5b67b1989e3ab (diff)
downloadexchange-e82cbd05b6b2c52f4053f3347ac01b0d0ed905af.tar.gz
exchange-e82cbd05b6b2c52f4053f3347ac01b0d0ed905af.tar.bz2
exchange-e82cbd05b6b2c52f4053f3347ac01b0d0ed905af.zip
-fix NPE
-rw-r--r--src/auditor/taler-helper-auditor-wire.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/auditor/taler-helper-auditor-wire.c b/src/auditor/taler-helper-auditor-wire.c
index 852c219cf..e1b57392b 100644
--- a/src/auditor/taler-helper-auditor-wire.c
+++ b/src/auditor/taler-helper-auditor-wire.c
@@ -1775,13 +1775,16 @@ conclude_account (struct WireAccount *wa)
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Reconciling CREDIT processing of account `%s'\n",
wa->ai->section_name);
- GNUNET_CONTAINER_multihashmap_iterate (in_map,
- &complain_in_not_found,
- wa);
- /* clean up before 2nd phase */
- GNUNET_CONTAINER_multihashmap_iterate (in_map,
- &free_rii,
- NULL);
+ if (NULL != in_map)
+ {
+ GNUNET_CONTAINER_multihashmap_iterate (in_map,
+ &complain_in_not_found,
+ wa);
+ /* clean up before 2nd phase */
+ GNUNET_CONTAINER_multihashmap_iterate (in_map,
+ &free_rii,
+ NULL);
+ }
process_credits (wa->next);
}