From 41bbf9d784518b8cf0b602f719c7a27a2c2d0155 Mon Sep 17 00:00:00 2001 From: ZHONG ZHUANG Date: Sun, 8 Sep 2024 11:28:18 +0800 Subject: [PATCH] [CAT-2343] Fix #2343 NPE --- .../catmonitor/registry/CatRegistryFactoryWrapper.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/integration/apache-dubbo/src/main/java/net/dubboclub/catmonitor/registry/CatRegistryFactoryWrapper.java b/integration/apache-dubbo/src/main/java/net/dubboclub/catmonitor/registry/CatRegistryFactoryWrapper.java index b881619af6..b005bf4989 100644 --- a/integration/apache-dubbo/src/main/java/net/dubboclub/catmonitor/registry/CatRegistryFactoryWrapper.java +++ b/integration/apache-dubbo/src/main/java/net/dubboclub/catmonitor/registry/CatRegistryFactoryWrapper.java @@ -21,6 +21,10 @@ public CatRegistryFactoryWrapper(RegistryFactory registryFactory) { @Override public Registry getRegistry(URL url) { + if (registry == null) { + logger.info("registry is null url " + url); + return registry; + } return new RegistryWrapper(registryFactory.getRegistry(url)); }