From 4564b9dc3ce784b6d476ae27cfa66fd796146e6c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 24 Sep 2016 21:43:16 +0000 Subject: [PATCH] fix NPE --- src/arm/gnunet-service-arm.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.25.1