Avoid bindable properties check when target has null value
See gh-16447
This commit is contained in:
committed by
Andy Wilkinson
parent
38f21a13cc
commit
15d4764185
@@ -45,7 +45,7 @@ class JavaBeanBinder implements DataObjectBinder {
|
||||
@Override
|
||||
public <T> T bind(ConfigurationPropertyName name, Bindable<T> target, Context context,
|
||||
DataObjectPropertyBinder propertyBinder) {
|
||||
boolean hasKnownBindableProperties = hasKnownBindableProperties(name, context);
|
||||
boolean hasKnownBindableProperties = target.getValue() != null && hasKnownBindableProperties(name, context);
|
||||
Bean<T> bean = Bean.get(target, hasKnownBindableProperties);
|
||||
if (bean == null) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user