Menu

#375 NPE in MappedFieldsTracker

Dozer v5.3.2
open-duplicate
nobody
None
5
2012-06-07
2012-06-07
Mark
No

If map() (Line 147) in MappingProcessor is called with destClass = NULL, destType is determined by type of given destObj. The destType (never NULL), is passed to all sub methods, but mappedFields getMappedValue() method, where destClass is used (maybe NULL). This will, in case of any mapped fields are already available, lead to an NPE in Line 55 of class MappedFieldsTracker.

We fixed the problem by passing destObj instead of destClass to getMappedValue() and all tests still passed this fix.

I am sorry that we cant provide a test scenario, but constellation is very hard to extract from our code.

Discussion

  • Mark

    Mark - 2012-06-07

    Duplicate of 3479697

     
  • Mark

    Mark - 2012-06-07
    • status: open --> open-duplicate
     

Log in to post a comment.

MongoDB Logo MongoDB