Recently, I needed to create mappers in Java using ModelMapper.
But, I needed to create converters in those mappers too. So, when I needed a destination, I always received a NPE.
To resolve that, follow the solution:
context.getMappingEngine().createDestination(context);
In this solution I created manually a destination. Now, I can make get/set in fields.
and that’s all folks!
If you have any doubts, problems or suggestions, just leave a message.