Skip to content

Commit

Permalink
[CAT-2343] Fix dianping#2343 NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
slankka committed Sep 8, 2024
1 parent f825e52 commit f8649a6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit f8649a6

Please sign in to comment.