From 43c73b22d65bb24511f7aa9c9168b4ff2e8d4d56 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 22 Aug 2016 13:23:07 +0000 Subject: [PATCH] -fix NPE --- src/statistics/statistics_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index 5ba78521c..c8709145b 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c @@ -922,7 +922,7 @@ GNUNET_STATISTICS_destroy (struct GNUNET_STATISTICS_Handle *h, GNUNET_assert (GNUNET_NO == h->do_destroy); /* Don't call twice. */ if ( (sync_first) && (NULL != h->mq) && - (0 != GNUNET_MQ_get_length (h->mq)) + (0 != GNUNET_MQ_get_length (h->mq)) && (GNUNET_YES == try_connect (h)) ) { if ( (NULL != h->current) && -- 2.25.1