Fix defects detected by static analysis tool 12/274812/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Tue, 10 May 2022 01:48:49 +0000 (10:48 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Tue, 10 May 2022 01:48:49 +0000 (10:48 +0900)
Change-Id: I34bf30e5c04dc391d185b8f3a8042ebf0530531a

src/client_manager.cpp

index 0225eb1..e380782 100644 (file)
@@ -217,7 +217,8 @@ bool CClientManager::check_sender_info_by_pid(pid_t pid, std::string sender_info
        }
        if (!ret) {
                MAS_LOGE("SENDER INFO does not match : [%s] [%s]",
-                       client->sender_info.c_str(), sender_info.c_str());
+                       (client ? client->sender_info.c_str() : ""),
+                       sender_info.c_str());
        }
        return ret;
 }