mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Tolerate case where there is no latest version timestamp in version info
This commit is contained in:
parent
ba8ba001d6
commit
b8d252244c
1 changed files with 5 additions and 1 deletions
|
@ -98,7 +98,11 @@ public class GetDocResult extends Result {
|
|||
}
|
||||
} else {
|
||||
versionID = jsonObject.get("latestVerId").getAsInt();
|
||||
createdAt = jsonObject.get("latestVerAt").getAsString();
|
||||
if (jsonObject.has("latestVerAt")) {
|
||||
createdAt = jsonObject.get("latestVerAt").getAsString();
|
||||
} else {
|
||||
createdAt = null;
|
||||
}
|
||||
if (jsonObject.has("migratedFromId")) {
|
||||
migratedFromID = jsonObject.get("migratedFromId").getAsString();
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue