Skip to content

Commit

Permalink
Fix: NPE.
Browse files Browse the repository at this point in the history
  • Loading branch information
burningtnt committed Nov 10, 2024
1 parent c378a99 commit 91bf4d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public static List<String> prepareFallbackURLs(RemoteVersion rv) {
RemoteVersion r = RemoteVersion.fetch(null, s);
FileDownloadTask.IntegrityCheck r1 = r.getIntegrityCheck(), r2 = rv.getIntegrityCheck();
if (!Objects.equals(r1.getAlgorithm(), r2.getAlgorithm()) || !Objects.equals(r1.getChecksum(), r2.getChecksum())) {
throw new IllegalArgumentException("Integrity check is mismatched");
return null;
}

return r.getUrl();
Expand Down

0 comments on commit 91bf4d8

Please sign in to comment.