fix NPE
authorChristian Grothoff <christian@grothoff.org>
Sat, 24 Sep 2016 21:43:16 +0000 (21:43 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 24 Sep 2016 21:43:16 +0000 (21:43 +0000)
src/arm/gnunet-service-arm.c

index 4d5e57db7fee93c8da7135025ce22cad027bd0e5..8c5113774d6416cd517040c3a94b0a242dce02dd 100644 (file)
@@ -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