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

Mapping a null byte[] to a null-nested byte[] causes a NullPointerException #177

Open
GoogleCodeExporter opened this issue Jan 1, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

1. unit test attached

    mFactory.classMap(A.class, B2.class)
        .field("property", "nested.property")
        .register();
where source property is a null byte[], and "nested" is null

What is the expected output? What do you see instead?

Excepted result would be nesting object created and null set in nested property
What I see instead is a NPE during mapping

What version of the product are you using? On what operating system?
v1.4.5, Win 7/64

Please provide any additional information below.

Workaround found: provide a byte[]-to-byte[] converter (uncomment related lines 
in test code to make it succeed)
May somehow be related to issue 162, although is this case there is no filter

Original issue reported on code.google.com by [email protected] on 9 Oct 2014 at 9:17

Attachments:

@GoogleCodeExporter
Copy link
Author

I have the same problem.. Thanks Oliver for posting this. 

Original comment by [email protected] on 9 Oct 2014 at 12:18

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

No branches or pull requests

1 participant