JSONArray.getString(1);
where ["name",null] is the json array, throws a JSONArray[1] not a string
exception only when proguard is enabled.
Am I missing something in my proguard rules?
JSONArray.getString(1);
where ["name",null] is the json array, throws a JSONArray[1] not a string
exception only when proguard is enabled.
Am I missing something in my proguard rules?
Did you try these methods:
/**
* Returns the value at {@code index} if it exists, coercing it if
* necessary. Returns the empty string if no such value exists.
*/
public String optString(int index)
or
/**
* Returns the value at {@code index} if it exists, coercing it if
* necessary. Returns {@code fallback} if no such value exists.
*/
public String optString(int index, String fallback)
Seem like does not return null
for String