Fix Exception

```
Exception has occurred.
ArgumentError (Invalid argument(s): No host specified in URI )
```

at line 79:
`final req = await http.get(Uri.parse(source.sourceCodeUrl!));`
when source.sourceCodeUrl is empty.
This commit is contained in:
NBA2K1 2025-06-06 21:43:50 +02:00
parent b161981901
commit 3eb0dc2534

View file

@ -42,7 +42,8 @@ Future<void> fetchSourcesList({
(source) => source.id == id,
orElse: () => Source(),
);
if (matchingSource.id != null) {
if (matchingSource.id != null &&
matchingSource.sourceCodeUrl!.isNotEmpty) {
await _updateSource(matchingSource, ref, repo, itemType);
}
} else {