mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-11 03:17:18 +00:00
Initialised descriptionLines.
This commit is contained in:
parent
e57f081c80
commit
ce9351186c
1 changed files with 2 additions and 4 deletions
|
@ -20,8 +20,6 @@ public class InvalidFilesException extends SnapshotPostException {
|
|||
|
||||
public InvalidFilesException(JsonObject json) {
|
||||
super(json);
|
||||
descriptionLines = new LinkedList<String>();
|
||||
descriptionLines.addAll(Arrays.asList(DESCRIPTION_LINES));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -36,9 +34,9 @@ public class InvalidFilesException extends SnapshotPostException {
|
|||
|
||||
@Override
|
||||
public void fromJSON(JsonElement json) {
|
||||
System.out.println(json);
|
||||
descriptionLines = new LinkedList<String>();
|
||||
descriptionLines.addAll(Arrays.asList(DESCRIPTION_LINES));
|
||||
try {
|
||||
|
||||
for (JsonElement error : json.getAsJsonObject().get("errors").getAsJsonArray()) {
|
||||
descriptionLines.add(describeError(error.getAsJsonObject()));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue