[6.2.4] fix bug of sound play helper , devices extends lenovo , npl of map init

This commit is contained in:
zhongchao
2023-12-18 12:01:23 +08:00
parent fbf4a89f37
commit 4c5b88aecf
7 changed files with 44 additions and 12 deletions

View File

@@ -36,12 +36,12 @@ class MogoMap private constructor() {
/**
* 业务使用时根据地图是否加载来判定 是否获取IMogoMap实例
*/
fun getMogoMap(instance: String = DEFAULT): IMogoMap {
fun getMogoMap(instance: String = DEFAULT): IMogoMap? {
return if (mapCache[instance] == null) {
CallerLogger.e("$M_MAP$TAG", "getMogoMap func has error with no instance in mapCache")
mapCache[DEFAULT]!!
mapCache[DEFAULT]
} else {
mapCache[instance]!!
mapCache[instance]
}
}