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

NPE while try to use abstract beans with optional properties [SPR-14474] #19043

Closed
spring-projects-issues opened this issue Jul 17, 2016 · 1 comment
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jul 17, 2016

Alexander opened SPR-14474 and commented

Since spring 4.3 there is NPE when i try to use abstract beans with optional properties.
NPE was thrown when trying to create bean with parent abstract bean without optional property.

Pls, see attached files (complete example present at github)


Affects: 4.3 GA, 4.3.1

Reference URL: https://github.com/chabapok/springBugDemo

Attachments:

Issue Links:

Referenced from: commits 938b56c, fe17f8d

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

This turns out to be a gap in our new BeanWrapperImpl.setBeanInstance method: It does not expose the given object as a root object for exception message purposes. Fixed in master now; to be backported to 4.3.2 later today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants