Fix DEREF_OF_NULL issue
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 13 Apr 2020 02:30:45 +0000 (11:30 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 13 Apr 2020 02:30:48 +0000 (11:30 +0900)
WGID-437528

src/NanDbusHandler.cpp

index 39f791c64079555f9ff3537f871f6bfdd27ad5ff..499d41f66f10e9680aae720ae65e952e59f63c10 100644 (file)
@@ -447,7 +447,9 @@ void NanDbusHandler::enableResponse(NanDbusDiscovery *object,
                GDBusMethodInvocation *invocation, int clientId, int error)
 {
        NAN_LOGD("enableResponse");
-       registerClientDestroySignal(clientId, g_dbus_method_invocation_get_sender(invocation));
+
+       if (invocation)
+               registerClientDestroySignal(clientId, g_dbus_method_invocation_get_sender(invocation));
        nan_dbus_discovery_complete_enable(object, invocation, clientId, error);
 }