NPE fix
This commit is contained in:
parent
2698ee7346
commit
ec88cb232d
|
|
@ -433,8 +433,10 @@ public class LargeScreenServiceImpl implements ILargeScreenService {
|
|||
String cause = object.getString("cause");
|
||||
if ("0".equals(status) && "OK".equals(cause)) {
|
||||
JSONObject addressmap = object.getJSONObject("addressmap");
|
||||
for (String s : addressmap.keySet()) {
|
||||
address = addressmap.get(s).toString();
|
||||
if (Objects.nonNull(addressmap)) {
|
||||
for (String s : addressmap.keySet()) {
|
||||
address = addressmap.get(s).toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
return address;
|
||||
|
|
|
|||
Loading…
Reference in New Issue