Skip to content

Commit

Permalink
feat(android): make JSObject.getString return null instead of 'null' …
Browse files Browse the repository at this point in the history
…string (#2602)
  • Loading branch information
jcesarmobile committed Mar 19, 2020
1 parent b9e25f3 commit 52069b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public String getString(String key) {
public String getString(String key, String defaultValue) {
try {
String value = super.getString(key);
if (value != null) {
if (!super.isNull(key) && value != null) {
return value;
}
} catch (JSONException ex) {
Expand Down

0 comments on commit 52069b7

Please sign in to comment.