-fix NPE
authorChristian Grothoff <christian@grothoff.org>
Mon, 22 Aug 2016 13:23:07 +0000 (13:23 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 22 Aug 2016 13:23:07 +0000 (13:23 +0000)
src/statistics/statistics_api.c

index 5ba78521c5d7150161962e7ad9bd3ac16c2d5542..c8709145bbbd4fe7506cd85587b474eee7226164 100644 (file)
@@ -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) &&