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 60693f7 commit 41bbf9d
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 41bbf9d

Please sign in to comment.