[3.0.0] pre check null

This commit is contained in:
zhongchao
2023-04-11 14:34:49 +08:00
parent 4a9e96ee87
commit 414463c09d

View File

@@ -143,6 +143,9 @@ public class AMapWrapper implements IMogoMap {
if (!checkAMap()) {
return;
}
if(optionsArrayList == null || optionsArrayList.size() == 0){
return;
}
ArrayList<MarkerSimpleData> markerOptionsArrayList = new ArrayList<>();
optionsArrayList.forEach((s, trackedObject) -> {
MarkerSimpleData markerOptions = ObjectUtils.fromAiData(trackedObject);