From b759bdcccd174d1a291a69b8c0e48941b00dd971 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Wed, 30 Oct 2024 15:13:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9Message=E7=BC=BA=E5=B0=91?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=9A=84=E5=BC=82=E5=B8=B8,=E5=9B=9E?= =?UTF-8?q?=E5=A4=8D400=E9=94=99=E8=AF=AF=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../event/request/impl/message/MessageRequestProcessor.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/MessageRequestProcessor.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/MessageRequestProcessor.java index 237eab16..8ad042bb 100755 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/MessageRequestProcessor.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/MessageRequestProcessor.java @@ -102,6 +102,11 @@ public class MessageRequestProcessor extends SIPRequestProcessorParent implement sipEvent.getErrorEvent().response(eventResult); } }else { + byte[] rawContent = request.getRawContent(); + if (rawContent == null) { + responseAck(request, Response.BAD_REQUEST, "content is null"); + return; + } Element rootElement; try { rootElement = getRootElement(evt);