Fixed folder import compatibility

This commit is contained in:
M66B 2019-02-28 11:04:34 +00:00
parent 693f6d91ae
commit 9880f10a5b
1 changed files with 3 additions and 1 deletions

View File

@ -290,7 +290,9 @@ public class EntityFolder implements Serializable {
public static EntityFolder fromJSON(JSONObject json) throws JSONException {
EntityFolder folder = new EntityFolder();
folder.id = json.getLong("id");
if (json.has("id"))
folder.id = json.getLong("id");
folder.name = json.getString("name");
folder.type = json.getString("type");