瀏覽代碼

修复空指针异常

648540858 2 年之前
父節點
當前提交
7079c73b99
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java

+ 1 - 1
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java

@@ -587,7 +587,7 @@ public class ZLMHttpHookListener {
                 return ret;
             }
             SendRtpItem sendRtpItem = redisCatchStorage.querySendRTPServer(null, null, param.getStream(), null);
-            if ("talk".equals(sendRtpItem.getApp())) {
+            if (sendRtpItem != null && "talk".equals(sendRtpItem.getApp())) {
                 ret.put("close", false);
                 return ret;
             }