Commit 4eac6dcc944d25dd54b615c3fcf4398304e4cf3d

Authored by 648540858
1 parent ebe24a6c

修复启动偶现报错

src/main/java/com/genersoft/iot/vmp/gb28181/session/AudioBroadcastManager.java
@@ -87,7 +87,9 @@ public class AudioBroadcastManager { @@ -87,7 +87,9 @@ public class AudioBroadcastManager {
87 public List<AudioBroadcastCatch> get(String deviceId) { 87 public List<AudioBroadcastCatch> get(String deviceId) {
88 List<AudioBroadcastCatch> audioBroadcastCatchList= new ArrayList<>(); 88 List<AudioBroadcastCatch> audioBroadcastCatchList= new ArrayList<>();
89 if (SipUtils.isFrontEnd(deviceId)) { 89 if (SipUtils.isFrontEnd(deviceId)) {
90 - audioBroadcastCatchList.add(data.get(deviceId)); 90 + if (data.get(deviceId) != null) {
  91 + audioBroadcastCatchList.add(data.get(deviceId));
  92 + }
91 }else { 93 }else {
92 for (String key : data.keySet()) { 94 for (String key : data.keySet()) {
93 if (key.startsWith(deviceId)) { 95 if (key.startsWith(deviceId)) {