NPE detection

This commit is contained in:
Christian Grothoff 2015-06-25 15:31:15 +02:00
parent c3b29bf7e7
commit 47262f4316
2 changed files with 59 additions and 55 deletions

View File

@ -67,6 +67,10 @@ main (int argc, char ** argv)
PERF_TALER_MINTDB_INIT_CMD_END("end"), PERF_TALER_MINTDB_INIT_CMD_END("end"),
}; };
// Plugin init // Plugin init
GNUNET_log_setup ("perf-taler-mintdb",
"WARNING",
NULL);
config = GNUNET_CONFIGURATION_create(); config = GNUNET_CONFIGURATION_create();
GNUNET_CONFIGURATION_load(config, "./test-mint-db-postgres.conf"); GNUNET_CONFIGURATION_load(config, "./test-mint-db-postgres.conf");
GNUNET_assert (NULL != GNUNET_assert (NULL !=

View File

@ -455,7 +455,7 @@ interpret (struct PERF_TALER_MINTDB_interpreter_state *state)
state->cmd[state->i] state->cmd[state->i]
.details.get_deposit.label_source)] .details.get_deposit.label_source)]
.exposed.deposit; // Get the deposit from the source .exposed.deposit; // Get the deposit from the source
GNUNET_assert (NULL != deposit);
state->plugin->have_deposit (state->plugin->cls, state->plugin->have_deposit (state->plugin->cls,
state->session, state->session,
deposit); deposit);