修复启动偶现报错

结构优化
648540858 2023-03-21 14:22:40 +08:00
parent ebe24a6c32
commit 4eac6dcc94
1 changed files with 3 additions and 1 deletions

View File

@ -87,7 +87,9 @@ public class AudioBroadcastManager {
public List<AudioBroadcastCatch> get(String deviceId) { public List<AudioBroadcastCatch> get(String deviceId) {
List<AudioBroadcastCatch> audioBroadcastCatchList= new ArrayList<>(); List<AudioBroadcastCatch> audioBroadcastCatchList= new ArrayList<>();
if (SipUtils.isFrontEnd(deviceId)) { if (SipUtils.isFrontEnd(deviceId)) {
audioBroadcastCatchList.add(data.get(deviceId)); if (data.get(deviceId) != null) {
audioBroadcastCatchList.add(data.get(deviceId));
}
}else { }else {
for (String key : data.keySet()) { for (String key : data.keySet()) {
if (key.startsWith(deviceId)) { if (key.startsWith(deviceId)) {