diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/session/AudioBroadcastManager.java b/src/main/java/com/genersoft/iot/vmp/gb28181/session/AudioBroadcastManager.java index 5acbf8eb..03aa7497 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/session/AudioBroadcastManager.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/session/AudioBroadcastManager.java @@ -87,7 +87,9 @@ public class AudioBroadcastManager { public List get(String deviceId) { List audioBroadcastCatchList= new ArrayList<>(); if (SipUtils.isFrontEnd(deviceId)) { - audioBroadcastCatchList.add(data.get(deviceId)); + if (data.get(deviceId) != null) { + audioBroadcastCatchList.add(data.get(deviceId)); + } }else { for (String key : data.keySet()) { if (key.startsWith(deviceId)) {