mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-29 21:59:02 +00:00
Fix NPE in BeanDefinitionLoader when XML support is disabled
See gh-22696
This commit is contained in:
committed by
Andy Wilkinson
parent
6efff7b585
commit
2bdeba8aaa
+1
-1
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user