-
Couldn't load subscription status.
- Fork 38.8k
Description
Robert Scholte opened SPR-3565 and commented
With the use of a wizardform I'm trying to to fill a command, in this case I want to fill a Map with a Collection of Dates. This means that the BeanWrapperImpl.class is responsible of building the command with use of the configured PropertyEditors
In the method private Object getPropertyValue(PropertyTokenHolder tokens) the readMethod for the Map is called. The result is null, since the propertyEditor is responsible for creating the Map if required / configured.
Althougt the Map is null, there's a check if token.keys != null, which is true, so the code tries to apply indexes and map keys. As expected this is not possible, so a NullValueInNestedPathException is thrown.
IMHO event though the Map is null, you should try to convert value with the registered PrpertyEdtior (by default null is converted to null, so no problem here I guess).
Affects: 2.0.5
Issue Links:
- Option to expose empty value instead of NullValueInNestedPathException [SPR-1671] #6368 Option to expose empty value instead of NullValueInNestedPathException