From 3aa2665fb254642985ba130cb7d65854b68b9d95 Mon Sep 17 00:00:00 2001 From: hotcoffie <35990065+hotcoffie@users.noreply.github.com> Date: 星期一, 23 五月 2022 09:15:59 +0800 Subject: [PATCH] Merge branch '648540858:wvp-28181-2.0' into wvp-28181-2.0 --- src/main/java/com/genersoft/iot/vmp/gb28181/utils/SipUtils.java | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/utils/SipUtils.java b/src/main/java/com/genersoft/iot/vmp/gb28181/utils/SipUtils.java index 8025818..35ec640 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/utils/SipUtils.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/utils/SipUtils.java @@ -25,6 +25,9 @@ * */ public static String getChannelIdFromHeader(Request request) { Header subject = request.getHeader("subject"); + if (subject == null) { + return null; + } return ((Subject) subject).getSubject().split(":")[0]; } -- Gitblit v1.8.0