Hi ,

I have a null pointer exception when i tried to get computedLength of a
text woth batik 1.6

java.lang.NullPointerException
  at
org.apache.batik.dom.svg.SVGTextContentSupport.getComputedTextLength(Unk\
nown Source)

Code :

SVGDocument doc = new SVGDom().getSVGDocument(uri);
Element txt2 = doc.getElementById("txt2");
SVGOMTSpanElement SVGtxt2 =  (SVGOMTSpanElement)txt2;
SVGtxt2.getComputedTextLength();   ->  NullPointerexception

<text id="txt1" font-size="23" x="90" y="88" text-anchor="middle"><tspan
fill="#455567"  font-style="normal" font-weight="normal">T</tspan><tspan
id="txt2" fill="#000000" font-size="23" font-style="normal"
font-weight="normal">est</tspan></text>



Thks for your help.

Niko




-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to