Properly handle null package
Closes gh-9621
This commit is contained in:
@@ -420,7 +420,8 @@ public class ConfigurationPropertiesBindingPostProcessor implements BeanPostProc
|
||||
if (AnnotatedElementUtils.hasAnnotation(type, Validated.class)) {
|
||||
return true;
|
||||
}
|
||||
if (type.getPackage().getName().startsWith("org.springframework.boot")) {
|
||||
if (type.getPackage() != null &&
|
||||
type.getPackage().getName().startsWith("org.springframework.boot")) {
|
||||
return false;
|
||||
}
|
||||
if (getConstraintsForClass(type).isBeanConstrained()) {
|
||||
|
||||
Reference in New Issue
Block a user