You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spring-boot/spring-boot-project
Phillip Webb 0ce3e7ec6b Protect against NPE caused by recursive calls
Update `SpringBootConfigurationFactory` so that it no longer attempts
to get a `LoggingSystem`.

The recent `LoggingSystem` update means makes use of the
`SpringFactoriesLoader` class to load candidate logging systems.
Unfortunately, the `SpringFactoriesLoader` class creates a `Logger`
which (when using Log4J2) causes `SpringBootConfigurationFactory` to
run. Calling `LoggingSystem.get` from `SpringBootConfigurationFactory`
results in a recursive call to `SpringFactoriesLoader` which hasn't
yet been fully initialized. We then see an NPE caused by a `null`
`cache`.

This update removes the call to `LoggingSystem.get` with the assumption
that it would never return `null` anyway.

Fixes gh-24163
4 years ago
..
spring-boot Protect against NPE caused by recursive calls 4 years ago
spring-boot-actuator Fix deprecation warnings in javadoc comments 4 years ago
spring-boot-actuator-autoconfigure Merge branch '2.3.x' 4 years ago
spring-boot-autoconfigure Fix deprecation warnings in javadoc comments 4 years ago
spring-boot-cli Polish "Polish empty string checks" 4 years ago
spring-boot-dependencies Merge branch '2.3.x' 4 years ago
spring-boot-devtools Allow Devtools to be enabled irrespective of the launching ClassLoader 4 years ago
spring-boot-docs Merge branch '2.3.x' 4 years ago
spring-boot-parent Merge branch '2.3.x' 4 years ago
spring-boot-properties-migrator Update copyright year of changed files 4 years ago
spring-boot-starters Add reference to JobRunr Spring Boot starter 4 years ago
spring-boot-test Merge branch '2.3.x' 4 years ago
spring-boot-test-autoconfigure Merge branch '2.3.x' 4 years ago
spring-boot-tools Use stable builder and run images in integration tests 4 years ago