Merge pull request #1854 from vannewang/2.7.3

修复CatalogEventLister未判空ServerGBId引发的空指针异常
This commit is contained in:
648540858 2025-05-19 14:40:35 +08:00 committed by GitHub
commit 01b820c235
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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> {
}
}
}