Fix NPE in BeanDefinitionLoader when XML support is disabled

See gh-22696
This commit is contained in:
dreis2211
2020-08-03 09:53:40 +01:00
committed by Andy Wilkinson
parent 6efff7b585
commit 2bdeba8aaa
@@ -189,7 +189,7 @@ class BeanDefinitionLoader {
}
private void load(CharSequence source) {
String resolvedSource = this.xmlReader.getEnvironment().resolvePlaceholders(source.toString());
String resolvedSource = this.scanner.getEnvironment().resolvePlaceholders(source.toString());
// Attempt as a Class
try {
load(ClassUtils.forName(resolvedSource, null));