From 23e3173ed0b05237d56c668a3e39f82f78aba4d6 Mon Sep 17 00:00:00 2001 From: vannewang <46670766+vannewang@users.noreply.github.com> Date: Mon, 19 May 2025 11:32:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DCatalogEventLister=E6=9C=AA?= =?UTF-8?q?=E5=88=A4=E7=A9=BAServerGBId=E5=BC=95=E5=8F=91=E7=9A=84?= =?UTF-8?q?=E7=A9=BA=E6=8C=87=E9=92=88=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gb28181/event/subscribe/catalog/CatalogEventLister.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/event/subscribe/catalog/CatalogEventLister.java b/src/main/java/com/genersoft/iot/vmp/gb28181/event/subscribe/catalog/CatalogEventLister.java index 08a329022..beb1c6917 100755 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/event/subscribe/catalog/CatalogEventLister.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/event/subscribe/catalog/CatalogEventLister.java @@ -44,6 +44,9 @@ public class CatalogEventLister implements ApplicationListener { Map channelMap = new HashMap<>(); if (event.getPlatform() != null) { parentPlatform = event.getPlatform(); + if (parentPlatform.getServerGBId() == null) { + return; + } subscribe = subscribeHolder.getCatalogSubscribe(parentPlatform.getServerGBId()); if (subscribe == null) { return; @@ -156,4 +159,4 @@ public class CatalogEventLister implements ApplicationListener { } } } - \ No newline at end of file +