Selaa lähdekoodia

修复空指针异常

648540858 2 vuotta sitten
vanhempi
commit
7079c73b99

+ 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;
             }