std::list<std::shared_ptr<DBManager::ProviderInfo>> provider_list;
while (db.Step() == SQLITE_ROW) {
- std::string provider_id = db.GetText(0);
- std::string app_id = db.GetText(1);
+ const char* provider_id_raw = db.GetText(0);
+ const char* app_id_raw = db.GetText(1);
+ std::string provider_id;
+ std::string app_id;
+ if (provider_id_raw != nullptr)
+ provider_id = provider_id_raw;
+ if (app_id_raw != nullptr)
+ app_id = app_id_raw;
int support_types = db.GetInt(2);
std::string icon = GetIcon(provider_id, locale);
std::string label = GetLabel(provider_id.c_str());