Merge pull request #617 from hasuniea/master

Fixing null property in AndriodAPIUtils
revert-dabc3590
Harshan Liyanage 8 years ago committed by GitHub
commit 58292f8c6f

@ -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