#189 NullPointerException when missing mapping entry

Dozer v5.1
Tim Bessie

In a mapping entry, I purposefully left out class-a, as a test, and I got the following NPE. Invalid XML should not cause NPEs, but trigger other error types.

[java] Exception in thread "main" java.lang.NullPointerException
[java] at org.dozer.classmap.ClassMap.getSrcClassToMap(ClassMap.java:195)
[java] at org.dozer.loader.MappingsParser.processMappings(MappingsParser.java:70)
[java] at org.dozer.loader.CustomMappingsLoader.load(CustomMappingsLoader.java:91)
[java] at org.dozer.DozerBeanMapper.loadCustomMappings(DozerBeanMapper.java:149)
[java] at org.dozer.DozerBeanMapper.getMappingProcessor(DozerBeanMapper.java:132)
[java] at org.dozer.DozerBeanMapper.map(DozerBeanMapper.java:94)
[java] at dozertest.DozerTest.runTest2(DozerTest.java:62)
[java] at dozertest.DozerTest.main(DozerTest.java:14)


  • Tim Bessie

    Tim Bessie - 2009-04-10
    • priority: 5 --> 7
  • dmitry (lv)

    dmitry (lv) - 2009-04-23

    fixed, thank you for reporting.
    Will be included in next release.

  • dmitry (lv)

    dmitry (lv) - 2009-04-23
    • labels: --> Integration Issue
    • milestone: --> Dozer v5.1
    • assigned_to: nobody --> buzdin
    • status: open --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks