I have managed to track down this bug. It only occurs when an empty text node is encountered. A fix for this is now checked into the CVS repository and the col.svg file should now work. I will also put in the null pointer check (see below) just to be on the safe side. (haven't checked this in yet) Bella -----Original Message----- From: Thomas E Deweese [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 9:58 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: GlyphLayou Problem (was: transcoder problem) >>>>> "KL" == Keiron Liddle <[EMAIL PROTECTED]> writes: KL> I get the following stack trace when converting the attached svg KL> file. This happens when using the transcoder (in this case the KL> pdf but it also occurs with the png). The error occurs with the KL> current cvs but works ok with batik 1.0. KL> DOes anyone know what the problem might be? KL> java.lang.NullPointerException at KL> org.apache.batik.gvt.text.GlyphLayout.doExplicitGlyphLayout(GlyphLayout.java :953) KL> at KL> org.apache.batik.gvt.text.GlyphLayout.<init>(GlyphLayout.java:93) KL> at I don't know the root cause, I hacked the following to get around it temporarily, however I am 100% _POSITIVE_ this isn't the correct solution, that will have to wait for the Bella and/or Dean to wake up :) Has anyone else noticed a marked increase in memory usage when dealing with text? Index: sources/org/apache/batik/gvt/text/GlyphLayout.java =================================================================== RCS file: /home/cvs/xml-batik/sources/org/apache/batik/gvt/text/GlyphLayout.java,v retrieving revision 1.15 diff -r1.15 GlyphLayout.java 953,954c953,957 < glyphOrientationAngle = (int)((Float)aci.getAttribute(GVTAttributedCharacterIterator. < TextAttribute.VERTICAL_ORIENTATION_ANGLE)).floatValue(); --- > Float angle = (Float)aci.getAttribute > (GVTAttributedCharacterIterator. > TextAttribute.VERTICAL_ORIENTATION_ANGLE); > if (angle != null) > glyphOrientationAngle = (int)(angle.floatValue()); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]