Be more defensive for github api dates

This commit is contained in:
crschnick 2024-01-20 17:38:04 +00:00
parent 3f197337c6
commit 11859d3d10
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ public class GitHubUpdater extends UpdateHandler {
ghAsset.get().getBrowserDownloadUrl(),
assetType,
Instant.now(),
rel.get().getCreatedAt().toInstant(),
rel.get().getCreatedAt() != null ? rel.get().getCreatedAt().toInstant() : null,
isUpdate));
return lastUpdateCheckResult.getValue();
}

View file

@ -50,7 +50,7 @@ public class PortableUpdater extends UpdateHandler {
null,
null,
Instant.now(),
rel.get().getCreatedAt().toInstant(),
rel.get().getCreatedAt() != null ? rel.get().getCreatedAt().toInstant() : null,
isUpdate));
return lastUpdateCheckResult.getValue();
}