From d178c283179aedc9c3b019af1fecfcb181d9077b Mon Sep 17 00:00:00 2001 From: panlinlin <648540858@qq.com> Date: 星期五, 25 十二月 2020 15:05:55 +0800 Subject: [PATCH] 修复空指针 --- src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java index 03031f0..7249d98 100644 --- a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java +++ b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java @@ -311,7 +311,8 @@ if (autoApplyPlay) { String app = json.getString("app"); String streamId = json.getString("stream"); - if ("rtp".equals(app) && streamId.indexOf("gb_play") > -1) { + StreamInfo streamInfo = storager.queryPlayByStreamId(streamId); + if ("rtp".equals(app) && streamId.indexOf("gb_play") > -1 && streamInfo == null) { String[] s = streamId.split("_"); if (s.length == 4) { String deviceId = s[2]; -- Gitblit v1.8.0