Commit 2bdeba8a authored by dreis2211's avatar dreis2211 Committed by Andy Wilkinson

Fix NPE in BeanDefinitionLoader when XML support is disabled

See gh-22696
parent 6efff7b5
...@@ -189,7 +189,7 @@ class BeanDefinitionLoader { ...@@ -189,7 +189,7 @@ class BeanDefinitionLoader {
} }
private void load(CharSequence source) { 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 // Attempt as a Class
try { try {
load(ClassUtils.forName(resolvedSource, null)); load(ClassUtils.forName(resolvedSource, null));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment