CKM: Comment out deprecated integration tests.
[platform/core/test/security-tests.git] / src / ckm-integration / process-settings / install-app.cpp
index 1028815..005b49e 100644 (file)
@@ -86,9 +86,11 @@ void InstallApp::Apply() {
 }
 
 void InstallApp::Revoke() {
-    int retcode = security_manager_app_uninstall(m_req.get());
-    RUNNER_ASSERT_MSG(SECURITY_MANAGER_SUCCESS == retcode,
-        "Error in security_manager_app_uninstall. Error: " << ToString(retcode));
+    if (m_req.get()) {
+        int retcode = security_manager_app_uninstall(m_req.get());
+        RUNNER_ASSERT_MSG(SECURITY_MANAGER_SUCCESS == retcode,
+            "Error in security_manager_app_uninstall. Error: " << ToString(retcode));
+    }
 }
 
 InstallApp::~InstallApp() {}