Merge pull request #50 from cppwfs/ISSUE-49

isRefreshScoped returns false if beanName is null
This commit is contained in:
Spencer Gibb
2015-08-20 09:42:50 -06:00

View File

@@ -122,7 +122,7 @@ ApplicationListener<EnvironmentChangeEvent>, ApplicationContextAware {
}
}
}
if (this.refreshScope == null) {
if (beanName == null || this.refreshScope == null) {
return false;
}
return this.beanFactory.containsBeanDefinition(beanName)