The argument of Plugin::PrepareApp() should not be nullptr.
This patch modifies that the implementation of the Plugin::PrepareApp() allows
the empty string. If the argument is the empty string, the nullptr will be
passed to the plugin function.
Change-Id: I6bc62c496ab663965070af512b041928a98ec75e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
else if (loader_type == kLoaderTypeHw)
setenv("AUL_HWACC", "hw", 1);
- int ret = launchpad::Plugin::PrepareApp(nullptr, ex);
+ int ret = launchpad::Plugin::PrepareApp("", ex);
if (ret != 0) {
_E("Plugin::PrepareApp() is failed. error(%d)", ret);
exit(EXIT_FAILURE);
}
_W("%s ++", kTagLaunchpadPluginPrepareApp);
- int ret = prepare_app_func(appid.c_str(), b.GetHandle());
+ int ret = prepare_app_func(appid.empty() ? nullptr : appid.c_str(),
+ b.GetHandle());
_W("%s --", kTagLaunchpadPluginPrepareApp);
return ret;
}