From 4eac6dcc944d25dd54b615c3fcf4398304e4cf3d Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Tue, 21 Mar 2023 14:22:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=AF=E5=8A=A8=E5=81=B6?= =?UTF-8?q?=E7=8E=B0=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/vmp/gb28181/session/AudioBroadcastManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) {