mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-10-02 18:17:27 +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(),
|
ghAsset.get().getBrowserDownloadUrl(),
|
||||||
assetType,
|
assetType,
|
||||||
Instant.now(),
|
Instant.now(),
|
||||||
rel.get().getCreatedAt().toInstant(),
|
rel.get().getCreatedAt() != null ? rel.get().getCreatedAt().toInstant() : null,
|
||||||
isUpdate));
|
isUpdate));
|
||||||
return lastUpdateCheckResult.getValue();
|
return lastUpdateCheckResult.getValue();
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ public class PortableUpdater extends UpdateHandler {
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
Instant.now(),
|
Instant.now(),
|
||||||
rel.get().getCreatedAt().toInstant(),
|
rel.get().getCreatedAt() != null ? rel.get().getCreatedAt().toInstant() : null,
|
||||||
isUpdate));
|
isUpdate));
|
||||||
return lastUpdateCheckResult.getValue();
|
return lastUpdateCheckResult.getValue();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue