ConfigurableWebBindingInitializer

setAutoGrowNestedPaths

public void setAutoGrowNestedPaths(boolean autoGrowNestedPaths)

Set whether a binder should attempt to "auto-grow" a nested path that contains a null value.

If "true", a null path location will be populated with a default object value and traversed
instead of resulting in an exception. This flag also enables auto-growth of collection elements
when accessing an out-of-bounds index.

Default is "true" on a standard DataBinder. Note that this feature is only supported
for bean property access (DataBinder's default mode), not for field access.