Skip to content

Commit fe31273

Browse files
committed
[dexopt] Fix: Convert with optional json array
1 parent 306e5a4 commit fe31273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/reandroid/dex/dexopt/ProfileMetadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public JSONObject toJson() {
7777
@Override
7878
public void fromJson(JSONObject json) {
7979
name().set(json.getString("name"));
80-
classList().fromJson(json.getJSONArray("classes"));
80+
classList().fromJson(json.optJSONArray("classes"));
8181
setInitialized(true);
8282
}
8383

0 commit comments

Comments
 (0)