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);