-fix NPE
This commit is contained in:
parent
b1b943aa3e
commit
3233195d2d
@ -274,8 +274,9 @@ do_shutdown (void *cls)
|
||||
for (unsigned int j = 0;
|
||||
NULL != (cmd = &is->commands[j])->label;
|
||||
j++)
|
||||
cmd->cleanup (cmd->cls,
|
||||
cmd);
|
||||
if (NULL != cmd->cleanup)
|
||||
cmd->cleanup (cmd->cls,
|
||||
cmd);
|
||||
if (NULL != is->exchange)
|
||||
{
|
||||
TALER_LOG_DEBUG ("Disconnecting the exchange\n");
|
||||
|
Loading…
Reference in New Issue
Block a user