diff options
Diffstat (limited to 'binding')
-rw-r--r-- | binding/bluetooth-util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/binding/bluetooth-util.c b/binding/bluetooth-util.c index 21bd0df..a1e15f0 100644 --- a/binding/bluetooth-util.c +++ b/binding/bluetooth-util.c @@ -1047,6 +1047,9 @@ gchar *return_bluez_path(afb_req_t request) { const char *adapter = afb_req_value(request, "adapter"); const char *device, *tmp; + if (!ns || (!adapter && !ns->adapter)) + return NULL; + call_work_lock(ns); adapter = adapter ? adapter : ns->adapter; call_work_unlock(ns); |