xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bogdan <bogda...@op.pl>
Subject Batik code correction
Date Sun, 03 Aug 2008 08:55:52 GMT
  Hello.

  You may have not received my message, so I send again:

SVGSVGElementBridge.java:handleAnimatedAttributeChanged(AnimatedLiveAttributeValue):

Locate

		if (rebuild) {
                     CompositeGraphicsNode gn = node.getParent();
                     gn.remove(node);
                     disposeTree(e, false);

                     handleElementAdded(gn, e.getParentNode(), e);
                     return;
                 }

(near the middle of the file)
and replace
                     gn.remove(node);
with
                     if (gn != null) gn.remove(node);

and

        handleElementAdded(gn, e.getParentNode(), e);

with

        if (gn != null) handleElementAdded(gn, e.getParentNode(), e);

  This corrections avoids some null-pointer exceptions inside batik.

-- 
Pozdrawiam/Regards - Bogdan                     (GNU/Linux & FreeDOS)
Kurs asemblera x86 (DOS, GNU/Linux):http://rudy.mif.pg.gda.pl/~bogdro
Grupy dyskusyjne o asm:  pl.comp.lang.asm alt.pl.asm alt.pl.asm.win32
www.JabberPL.org www.TorProject.org Soft (EN): miniurl.pl/bogdro-soft

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


Mime
View raw message