Assign pkgid in installation context 28/33828/3 accepted/tizen/common/20150119.153839 submit/tizen_common/20150119.141851
authorTomasz Iwanek <t.iwanek@samsung.com>
Thu, 15 Jan 2015 10:33:18 +0000 (11:33 +0100)
committerBaptiste DURAND <baptiste.durand@open.eurogiciel.org>
Mon, 19 Jan 2015 10:25:48 +0000 (11:25 +0100)
Fixes installation process

Change-Id: I7cc7ae9d8f7e09c98fb5eb007abb33dd1c194beb

src/common/step/step_copy.cc

index b92fc9e..d53fde9 100644 (file)
@@ -28,7 +28,8 @@ int StepCopy::process(ContextInstaller* data) {
   // If there is 1 app in package, app's data are stored in <pkg_path>/<app_id>
   // If there are >1 apps in package, app's data are stored in <pkg_path>
   // considering that multiple apps data are already separated in folders.
-  if (!data->manifest_data()->uiapplication->next)
+  if (data->manifest_data()->uiapplication &&
+      !data->manifest_data()->uiapplication->next)
     install_path /= fs::path(data->manifest_data()->mainapp_id);
 
   if (!utils::CopyDir(fs::path(data->unpack_directory()), install_path)) {