#257 NPE in SimpleElementReader

Dozer v5.2.2
closed-fixed
None
7
2010-05-12
2010-05-10
Anonymous
No

SimpleElementReader causes an NPE in 5.2.1 for a configuration.xml simple as that:

<?xml version="1.0" encoding="UTF-8"?>
<mappings xmlns="http://dozer.sourceforge.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://dozer.sourceforge.net
http://dozer.sourceforge.net/schema/beanmapping.xsd">

<configuration>
<stop-on-errors>false</stop-on-errors>
<date-format>MM/dd/yyyy HH:mm</date-format>
<wildcard>true</wildcard>
<custom-converters>
<converter type="com.mypackage.MyConverter">
<class-a>com.mypackage.ClassA</class-a>
<class-b>com.mypackage.ClassB</class-b>
</converter>
<converter type="com.mypackage.OtherConverter">
<class-a>com.mypackage.ClassC</class-a>
<class-b>com.mypackage.ClassD</class-b>
</converter>
</custom-converters>
</configuration>
</mappings>

element.getFirstChild().getNodeValue() is called on custom-converters/converter tag, where value is null naturally. (See Node JavaDoc for which node types a value is actually available.)

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2010-05-10

    Sorry, didn't see that. Duplicate of #2997252.

     
  • dmitry (lv)

    dmitry (lv) - 2010-05-11
    • milestone: --> 1049123
    • priority: 5 --> 7
    • assigned_to: nobody --> buzdin
     
  • dmitry (lv)

    dmitry (lv) - 2010-05-12
    • milestone: 1049123 --> Dozer v5.2.2
    • status: open --> closed-fixed
     
  • dmitry (lv)

    dmitry (lv) - 2010-05-12

    fixed in trunk

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks