Element type = null should be process the same as element type = ELEMENT_TYPE_PROPERTIES.

This commit is contained in:
Heng Sin Low 2010-12-24 01:37:24 +08:00
parent 25204acf0d
commit 7623372601
1 changed files with 4 additions and 4 deletions

View File

@ -249,13 +249,13 @@ public class PackInHandler extends DefaultHandler {
{
e.parent = stack.peek();
String reference = atts.getValue("type");
if (!IHandlerRegistry.ELEMENT_TYPE_PROPERTIES.equals(reference))
if (reference == null || reference.equals(IHandlerRegistry.ELEMENT_TYPE_PROPERTIES))
{
e.parent.childrens.add(e);
e.parent.properties.put(qName, e);
}
else
{
e.parent.properties.put(qName, e);
e.parent.childrens.add(e);
}
}
stack.push(e);