mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Merge pull request #617 from hasuniea/master
Fixing null property in AndriodAPIUtils
This commit is contained in:
commit
58292f8c6f
@ -490,7 +490,8 @@ public class AndroidAPIUtils {
|
||||
if (exist) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user