404-not-find / orika

Automatically exported from code.google.com/p/orika
2 stars 0 forks source link

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 olivier....@gmail.com on 9 Oct 2014 at 9:17

Attachments:

GoogleCodeExporter commented 8 years ago
I have the same problem.. Thanks Oliver for posting this. 

Original comment by rony...@gmail.com on 9 Oct 2014 at 12:18