diff --git a/lib/utils/utils.dart b/lib/utils/utils.dart index 1fc7812..be69266 100644 --- a/lib/utils/utils.dart +++ b/lib/utils/utils.dart @@ -8,7 +8,8 @@ Source? getSource(String lang, String name) { return sourcesList.lastWhere( (element) => element.name!.toLowerCase() == name.toLowerCase() && - element.lang == lang, + element.lang == lang && + element.sourceCode != null, orElse: () => throw ("Error when getting source"), ); } catch (_) {