Skip to content

Commit

Permalink
avoid npe (sofastack#1177)
Browse files Browse the repository at this point in the history
Co-authored-by: 致节 <hzj266771@antgroup.com>
(cherry picked from commit 7e5fd1e)
  • Loading branch information
HzjNeverStop authored and 致节 committed Jun 5, 2023
1 parent 50ee113 commit f43cd15
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ public void unregister(ComponentInfo componentInfo) throws ServiceRuntimeExcepti
ComponentType componentType = componentName.getType();

Map<ComponentName, ComponentInfo> typesRi = resolvedRegistry.get(componentType);
typesRi.remove(componentName);
if (typesRi != null) {
typesRi.remove(componentName);
}
}

componentInfo.unregister();
Expand Down

0 comments on commit f43cd15

Please sign in to comment.