Merge pull request #16447 from dreis2211

* gh-16447:
  Avoid bindable properties check when target has null value

Closes gh-16447
pull/17389/head
Andy Wilkinson 5 years ago
commit 35a178abab

@ -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;

Loading…
Cancel
Save