From 24155938b50054f2cf86cbdd8b52dae9d67275f5 Mon Sep 17 00:00:00 2001 From: "sung-su.kim" Date: Fri, 26 Jul 2013 16:41:43 +0900 Subject: [PATCH] Add callerId exception [Issue#] N/A [Problem] N/A [Cause] N/A [Solution] Add callerId exception [SCMRequest] N/A Change-Id: I58b7f23ff190e4d0458d71f41403cf144a10d541 --- src/pkg-manager/pkgmgr_signal.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pkg-manager/pkgmgr_signal.cpp b/src/pkg-manager/pkgmgr_signal.cpp index f0cd371..4d34368 100644 --- a/src/pkg-manager/pkgmgr_signal.cpp +++ b/src/pkg-manager/pkgmgr_signal.cpp @@ -61,8 +61,9 @@ bool PkgmgrSignal::initialize(int argc, char* argv[]) m_handle = NULL; return false; } - m_callerId = pkgmgr_installer_get_caller_pkgid(m_handle); - LogDebug("@@@@ Caller Id : " << m_callerId); + const char *callerId = pkgmgr_installer_get_caller_pkgid(m_handle); + if(callerId) + m_callerId = callerId; } else { LogError("Fail to get information of pkgmgr's request"); -- 2.7.4