The parser throws a NullPointerException on the following input:
<Rule RuleId="id" Effect="Permit"><Description/></Rule>
The reason is that the Description node doesn't have children.
I have a fix available.
Can you please post the fix as a patch diff file. Thanks.
I don't remember the fix anymore, it's been too long ago. I think I wrote a function getText(Element), which extracts the text contents of a DOM Element.
But since the XML parsing code will go away pretty quickly and soon (I hope), I don't think this patch will be necessary.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.