From: Christian Grothoff Date: Sat, 24 Sep 2016 21:43:16 +0000 (+0000) Subject: fix NPE X-Git-Tag: initial-import-from-subversion-38251~209 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4564b9dc3ce784b6d476ae27cfa66fd796146e6c;p=oweals%2Fgnunet.git fix NPE --- diff --git a/src/arm/gnunet-service-arm.c b/src/arm/gnunet-service-arm.c index 4d5e57db7..8c5113774 100644 --- a/src/arm/gnunet-service-arm.c +++ b/src/arm/gnunet-service-arm.c @@ -318,9 +318,10 @@ broadcast_status (const char *name, namelen); if (NULL == unicast) { - GNUNET_notification_context_broadcast (notifier, - &msg->header, - GNUNET_YES); + if (NULL != notifier) + GNUNET_notification_context_broadcast (notifier, + &msg->header, + GNUNET_YES); GNUNET_MQ_discard (env); } else