[Release] wrt-installer_0.1.40
[framework/web/wrt-installer.git] / src / misc / widget_install_to_external.cpp
index 4f794b6..42bcc4f 100644 (file)
@@ -74,14 +74,15 @@ void WidgetInstallToExt::preInstallation(GList *dirList, int dSize)
 void WidgetInstallToExt::postInstallation(bool status)
 {
     LogDebug("WidgetInstallToExt::postInstallation()");
-    Assert(m_handle);
 
-    if (status) {
-        m_handle->interface.post_install(m_appId.c_str(),
-                                         APP2EXT_STATUS_SUCCESS);
-    } else {
-        m_handle->interface.post_install(m_appId.c_str(),
-                                         APP2EXT_STATUS_FAILED);
+    if (NULL != m_handle) {
+        if (status) {
+            m_handle->interface.post_install(m_appId.c_str(),
+                                             APP2EXT_STATUS_SUCCESS);
+        } else {
+            m_handle->interface.post_install(m_appId.c_str(),
+                                             APP2EXT_STATUS_FAILED);
+        }
     }
 }
 
@@ -102,14 +103,14 @@ void WidgetInstallToExt::preUpgrade(GList *dirList, int dSize)
 void WidgetInstallToExt::postUpgrade(bool status)
 {
     LogDebug("WidgetInstallToExt::postUpgrade()");
-    Assert(m_handle);
-
-    if (status) {
-        m_handle->interface.post_upgrade(m_appId.c_str(),
-                                         APP2EXT_STATUS_SUCCESS);
-    } else {
-        m_handle->interface.post_upgrade(m_appId.c_str(),
-                                         APP2EXT_STATUS_FAILED);
+    if (NULL != m_handle) {
+        if (status) {
+            m_handle->interface.post_upgrade(m_appId.c_str(),
+                                             APP2EXT_STATUS_SUCCESS);
+        } else {
+            m_handle->interface.post_upgrade(m_appId.c_str(),
+                                             APP2EXT_STATUS_FAILED);
+        }
     }
 }