Return null when the requested theme does not exist.
Change-Id: Ic5a7f710992c21efe2c3bf0f5248868b6fa872ee
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
std::shared_ptr<loader::ThemeInfo> ThemeInfoProxy::LoadTheme(
const std::string& id) {
- return std::make_shared<loader::ThemeInfo>(db_manager_->Select(id));
+ tizen_base::Bundle b = db_manager_->Select(id);
+ if (b.GetCount())
+ return std::make_shared<loader::ThemeInfo>(b);
+ else
+ return {};
}
bool ThemeInfoProxy::SaveTheme(const loader::ThemeInfo& info) {