diff --git a/src/network.c b/src/network.c index a3d41a74..6e69b078 100644 --- a/src/network.c +++ b/src/network.c @@ -1186,6 +1186,9 @@ static void notify_status_watches(struct ofono_netreg *netreg) const char *mcc = NULL; const char *mnc = NULL; + if (netreg->status_watches == NULL) + return; + if (netreg->current_operator) { mcc = netreg->current_operator->mcc; mnc = netreg->current_operator->mnc;