mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-12 09:58:10 +02:00
Fix null check error for GitHub repos w/o releases
This commit is contained in:
@@ -211,8 +211,8 @@ class GitHub extends AppSource {
|
|||||||
(nameA as String).substring(matchA!.start, matchA.end),
|
(nameA as String).substring(matchA!.start, matchA.end),
|
||||||
(nameB as String).substring(matchB!.start, matchB.end));
|
(nameB as String).substring(matchB!.start, matchB.end));
|
||||||
} else {
|
} else {
|
||||||
return getReleaseDateFromRelease(a)!
|
return (getReleaseDateFromRelease(a) ?? DateTime(1))
|
||||||
.compareTo(getReleaseDateFromRelease(b)!);
|
.compareTo(getReleaseDateFromRelease(b) ?? DateTime(0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user