Add callerId exception
authorsung-su.kim <sung-su.kim@samsung.com>
Fri, 26 Jul 2013 07:41:43 +0000 (16:41 +0900)
committersung-su.kim <sung-su.kim@samsung.com>
Fri, 26 Jul 2013 07:54:08 +0000 (16:54 +0900)
[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

index f0cd371..4d34368 100644 (file)
@@ -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");