• Andy Wilkinson's avatar
    Improve error handling in EnableAutoConfigurationImportSelector · eed58eec
    Andy Wilkinson authored
    Previously, EnableAutoConfigurationImportSelector assumed that it
    would always find auto-configuration attributes from an
    @EnableAutoConfiguration annotation. This assumption does not hold
    true in certain circumstances, although exactly what those
    circumstances are is unclear. It could occur if the import selector
    were used directly, but it's package-private making that unlikey. In
    such circumstances a NullPointerException was being thrown.
    
    This commit asserts that the attributes are non-null and, should the
    assertion fail, produces an error that is more helpful than an NPE.
    
    Closes gh-1512
    eed58eec
Name
Last commit
Last update
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
spring-boot-versions Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
README.adoc Loading commit data...
pom.xml Loading commit data...