mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-05-02 15:14:26 +02:00
handle null/empty attribute name
This commit is contained in:
parent
de90186007
commit
3db41d542e
@ -425,7 +425,7 @@ import java.util.Set;
|
||||
}
|
||||
@Override
|
||||
public void fromJson(JSONObject json) {
|
||||
String name = json.getString(NAME_name);
|
||||
String name = json.optString(NAME_name, "");
|
||||
int id = json.optInt(NAME_id, 0);
|
||||
setName(name, id);
|
||||
String uri= json.optString(NAME_namespace_uri, null);
|
||||
|
Loading…
x
Reference in New Issue
Block a user