mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-24 22:17:49 +08:00
修复CatalogEventLister未判空ServerGBId引发的空指针异常
This commit is contained in:
parent
c19fae68a3
commit
23e3173ed0
@ -44,6 +44,9 @@ public class CatalogEventLister implements ApplicationListener<CatalogEvent> {
|
|||||||
Map<String, CommonGBChannel> channelMap = new HashMap<>();
|
Map<String, CommonGBChannel> channelMap = new HashMap<>();
|
||||||
if (event.getPlatform() != null) {
|
if (event.getPlatform() != null) {
|
||||||
parentPlatform = event.getPlatform();
|
parentPlatform = event.getPlatform();
|
||||||
|
if (parentPlatform.getServerGBId() == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
subscribe = subscribeHolder.getCatalogSubscribe(parentPlatform.getServerGBId());
|
subscribe = subscribeHolder.getCatalogSubscribe(parentPlatform.getServerGBId());
|
||||||
if (subscribe == null) {
|
if (subscribe == null) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user