jhalterman/modelmapper — pull request #5 by chrisdail (2012-07-19 11:10:32+00:00)
Title: Fix for Issue 19 - Removed Shading of null parameters

Shading of null parameters seems to be broken. The same context is reused for multiple objects. What is happening is if one of them has a null, it ends up mapping all of them incorrectly to null.

Consider an object customer with name property who has dogs.

Customer
- name
- List dogs

Dog
- name

If any dog has a name of null, then the customer's name will end up being null as well. This is because the context caches this shaded path between mapping different objects.

This fix removes the shading feature and fixes the problem.