I *think* I found a possible defect in Dom4JMapperBase related to
unmarshalling an XML document with a namespace without a prefix.  For
instance <foo xmlns="http://whoknows";></foo> causes Dom4J to throw a
NullPointerException, but <foo xmlns:bar="http://whoknows";></foo> does not.

If you go to line 347 in Dom4JMapperBase you'll see it doesn't do a null
check.  I modified this 1 line of code to the following which seems to have
fixed the issue for me:

*String prefix = m_unmarshalContext.getNamespacePrefix(i) == null ? "" :
m_unmarshalContext.getNamespacePrefix(i);*
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to