diff --git a/lib/app_sources/vivoappstore.dart b/lib/app_sources/vivoappstore.dart index 278ca3c..280a585 100644 --- a/lib/app_sources/vivoappstore.dart +++ b/lib/app_sources/vivoappstore.dart @@ -70,12 +70,14 @@ class VivoAppStore extends AppSource { throw NoReleasesError(); } Map> results = {}; - var resultsJson = json['data']['appSearchResponse']['value']; - for (var item in (resultsJson as List)) { - results['$appDetailUrl${item['id']}'] = [ - item['title_zh'].toString(), - item['developer'].toString(), - ]; + var resultsJson = json['data']['appSearchResponse']?['value']; + if (resultsJson != null) { + for (var item in (resultsJson as List)) { + results['$appDetailUrl${item['id']}'] = [ + item['title_zh'].toString(), + item['developer'].toString(), + ]; + } } return results; }