Fixing null property in AndriodAPIUtils

revert-dabc3590
Hasunie 8 years ago
parent a30fbfdbec
commit 143569b83b

@ -490,7 +490,8 @@ public class AndroidAPIUtils {
if (exist) { if (exist) {
return ob.getValue().getAsString().replace("%", ""); return ob.getValue().getAsString().replace("%", "");
} }
if (ob.getValue().getAsString().equalsIgnoreCase(needed)) { JsonElement val = ob.getValue();
if (val != null && !val.isJsonNull() && ob.getValue().getAsString().equalsIgnoreCase(needed)) {
exist = true; exist = true;
} }
} }

Loading…
Cancel
Save