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