File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
spring-beans/src/main/java/org/springframework/beans/factory/support Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -323,7 +323,8 @@ public void copyConfigurationFrom(ConfigurableBeanFactory otherFactory) {
323
323
this .allowEagerClassLoading = otherListableFactory .allowEagerClassLoading ;
324
324
this .dependencyComparator = otherListableFactory .dependencyComparator ;
325
325
// A clone of the AutowireCandidateResolver since it is potentially BeanFactoryAware...
326
- setAutowireCandidateResolver (BeanUtils .instantiateClass (getAutowireCandidateResolver ().getClass ()));
326
+ setAutowireCandidateResolver (
327
+ BeanUtils .instantiateClass (otherListableFactory .getAutowireCandidateResolver ().getClass ()));
327
328
// Make resolvable dependencies (e.g. ResourceLoader) available here as well...
328
329
this .resolvableDependencies .putAll (otherListableFactory .resolvableDependencies );
329
330
}
@@ -909,7 +910,7 @@ protected void resetBeanDefinition(String beanName) {
909
910
for (String bdName : this .beanDefinitionNames ) {
910
911
if (!beanName .equals (bdName )) {
911
912
BeanDefinition bd = this .beanDefinitionMap .get (bdName );
912
- if (beanName .equals (bd .getParentName ())) {
913
+ if (bd != null && beanName .equals (bd .getParentName ())) {
913
914
resetBeanDefinition (bdName );
914
915
}
915
916
}
You can’t perform that action at this time.
0 commit comments