Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null Pointer when logging error on null collection member's sub property #57

Open
cduplichien opened this issue May 21, 2014 · 0 comments
Assignees
Milestone

Comments

@cduplichien
Copy link
Member

ValidationErrorMessageHandler.getModelMessageKey() line 211 returns null.

parentType = beanWrapper.getPropertyType(parentPath);

In this case, given the full path "collection[0].subProperty", the parent path is "collection[0]". beanWrapper.getPropertyType("collection[0]") returns null when the item at collection[0] is null.

This method should be using PathUtils to unwrap the collection type, instead of beanWrapper directly.
Also, springjutsu-validation should really be using spring 4 for the better parameterization handling.

@cduplichien cduplichien added this to the 0.8.0 milestone May 21, 2014
@cduplichien cduplichien self-assigned this May 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant