Hi Dmitrij,

Dmitrij Sakara wrote:

I have a problem with insertBefore method. The execution of a line

What version of Batik? - 1.5.1 I presume.

element.insertBefore(element.getFirstChild(), someElement);
leads to exception: java.lang.NullPointerException

Can you build a debug version of Batik (preferably CVS) so I can see what line the problem is occurring at. I've eyeballed the code and assuming the childNode linked list doesn't have 'errors' I don't see how you could get this with the current code (which may mean that one of the other methods is the true problem but knowing what line would help identify likely candidates).

at org.apache.batik.dom.AbstractParentNode$ChildNodes.insert(Unknown Source)
at org.apache.batik.dom.AbstractParentNode.insertBefore(Unknown Source)
What can be a problem?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to