Avoid bindable properties check when target has null value

See gh-16447
This commit is contained in:
dreis2211 2019-04-03 22:59:22 +02:00 committed by Andy Wilkinson
parent 38f21a13cc
commit 15d4764185
1 changed files with 1 additions and 1 deletions

View File

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