mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-30 00:56:56 +13:00
Be more defensive for github api dates
This commit is contained in:
parent
3f197337c6
commit
11859d3d10
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue