[Issue#] It was possible for pkgname to be null.
[Bug] N/A
[Cause] N/A
[Solution] Changed Column deffinition in db file and replaced DPL:Optional<DPL::String> with DPL::String.
[Verification] Build.
Change-Id: Ie63ec0b72c6cad367ea7500ea515f6896ccf37cf
Try
{
WrtDB::WidgetDAOReadOnly dao(getWidgetId());
- return WrtDB::WidgetConfig::GetWidgetPersistentStoragePath(*dao.getPkgname());
+ return WrtDB::WidgetConfig::GetWidgetPersistentStoragePath(dao.getPkgname_NOTNULL());
}
Catch(DPL::Exception)
{
Try
{
WrtDB::WidgetDAOReadOnly dao(getWidgetId());
- return WrtDB::WidgetConfig::GetWidgetTemporaryStoragePath(*dao.getPkgname());
+ return WrtDB::WidgetConfig::GetWidgetTemporaryStoragePath(dao.getPkgname_NOTNULL());
}
Catch(DPL::Exception)
{
Try
{
WrtDB::WidgetDAOReadOnly widgetDAO(widgetHandle);
- DPL::Optional<DPL::String> pkgname = widgetDAO.getPkgname();
+ DPL::String pkgname = widgetDAO.getPkgname_NOTNULL();
- filename << GetWidgetPersistentStoragePath(*pkgname)
+ filename << GetWidgetPersistentStoragePath(pkgname)
<< "/"
<< GetWidgetInterfaceDatabaseFile();
}