taler-mdb

GNU Taler Extensions and Integrations
Log | Files | Refs | Submodules | README | LICENSE

commit 0048accceb87c7842ccd80d4ea460e7708f84383
parent ab91096f041ef69572c995f242b68ef78400b923
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed,  4 Dec 2019 13:46:38 +0100

fix NPE

Diffstat:
Msrc/main.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -1436,8 +1436,11 @@ handle_command (const char *hex, "Received MDB session complete\n"); mdb.session_running = GNUNET_NO; mdb.cmd = &endSession; - cleanup_payment (payment_activity); - payment_activity = NULL; + if (NULL != payment_activity) + { + cleanup_payment (payment_activity); + payment_activity = NULL; + } } break; default: