hello!
I get a nullpointerexception when running the following part of my code:
    protected void renderSVGDocument(Document doc, int x, int y) {

        UserAgent userAgent = new MUserAgent(new AffineTransform());

        GVTBuilder builder = new GVTBuilder();
        StaticRendererFactory srf = new StaticRendererFactory();
        GraphicsNodeRenderContext rc = srf.getRenderContext();
        BridgeContext ctx = new BridgeContext(userAgent, rc);
        GraphicsNode root;// = new GraphicsNode();
        graphics.translate(200, 100);
        graphics.setRenderingHints(rc.getRenderingHints());
        root = builder.build(ctx, doc);
     
        root.paint(graphics, rc); <-- That is the point where the exception is
raised!!!
        
        graphics.translate(-200, -100);
    }

Thanks in advance!

Ilian Alekov
begin:vcard 
n:Alekov;Ilian
tel;cell:+359.88.43 51 53
tel;work:+359.2.91 91 2
x-mozilla-html:TRUE
url:http://www.alekov.net
org:TechnoLogica Ltd.;Oracle dept.
adr:;;;Sofia;;;Bulgaria
version:2.1
email;internet:[EMAIL PROTECTED]
title:IT Consultant
fn:Ilian Alekov
end:vcard

---------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to