From e3c8dc989618da4aea75d52a9fac285542c7da52 Mon Sep 17 00:00:00 2001 From: kodjomoustapha <107993382+kodjodevf@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:49:36 +0100 Subject: [PATCH] + --- lib/utils/utils.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 (_) {