Fix crash
authorDaehyeon Jung <darrenh.jung@samsung.com>
Fri, 12 Oct 2018 09:13:40 +0000 (18:13 +0900)
committer정대현/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 <darrenh.jung@samsung.com>
Fri, 19 Oct 2018 08:55:28 +0000 (17:55 +0900)
Change-Id: Icddde6426f57f42e32a56ac3a0ecd46477d297bf
Signed-off-by: Daehyeon Jung <darrenh.jung@samsung.com>
src/common/dbus_service.cc

index daf3ed5c93c69944d06e9fb1aae3b80e66517a04..28a908f709469689080021964ded81b5bd02b85c 100755 (executable)
@@ -332,6 +332,11 @@ void DBusService::HandleMethodCall(GDBusConnection* connection,
     gpointer /* user_data */) {
   bool r = false;
 
+  if (!method_name) {
+    LOG(INFO) << "Bad Mthod Call";
+    return;
+  }
+
   LOG(INFO) << "Incomming method call: " << method_name;
   if (g_strcmp0("DiscoverUnownedDevices", method_name) == 0) {
     r = HandleDiscoverUnownedDevices(parameters, invocation);