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

HB000 #11

Open
alexeymatveevp opened this issue Oct 2, 2013 · 1 comment
Open

HB000 #11

alexeymatveevp opened this issue Oct 2, 2013 · 1 comment
Labels

Comments

@alexeymatveevp
Copy link
Collaborator

NPE when deleting element of type int and saving

@alexeymatveevp
Copy link
Collaborator Author

Some fields can be of primitive type int and some - java.lang.Integer, but htmlbeanz does not distinguish them.
Consider that such field is opt for deletion from UI. When ObjectWrapper is doing reverse wrapping, fields which are int are trying to set to null, if element.isEmpty==true - so NPE occurs.

Fix is to handle primirive types manually and set their default value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant