修复CatalogEventLister未判空ServerGBId引发的空指针异常

This commit is contained in:
vannewang
2025-05-19 11:32:55 +08:00
committed by GitHub
parent c19fae68a3
commit 23e3173ed0

View File

@@ -44,6 +44,9 @@ public class CatalogEventLister implements ApplicationListener<CatalogEvent> {
Map<String, CommonGBChannel> 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<CatalogEvent> {
}
}
}