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 value in a map throws NPE in objectToValue [moved] #30

Closed
jyemin opened this issue Apr 25, 2013 · 0 comments
Closed

Null value in a map throws NPE in objectToValue [moved] #30

jyemin opened this issue Apr 25, 2013 · 0 comments

Comments

@jyemin
Copy link
Contributor

jyemin commented Apr 25, 2013

This is Issue 30 moved from a Google Code project.
Added by 2010-04-07T05:29:35.000Z by mmast...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).

Original labels: Type-Defect, Priority-Medium, Milestone-Release0.93

Original description

If you attempt to serialize a map with a null value, objectToValue throws a 
NullPointerException:

    public Object objectToValue(Object obj) {
        return objectToValue(obj.getClass(), obj);
    }

This is probably an issue in a few other collections as well.
@jyemin jyemin closed this as completed Apr 25, 2013
fwautobuild pushed a commit to fwHub/morphia that referenced this issue Feb 2, 2021
fwautobuild pushed a commit to fwHub/morphia that referenced this issue Feb 2, 2021
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