Miguel Fonseca created BATIK-1370:
-------------------------------------

             Summary: display:none on referenced elements causes 
java.lang.IllegalArgumentException
                 Key: BATIK-1370
                 URL: https://issues.apache.org/jira/browse/BATIK-1370
             Project: Batik
          Issue Type: Bug
    Affects Versions: 1.17
            Reporter: Miguel Fonseca
         Attachments: display-none-reference.svg

When an element with style "display:none" is present and is a reference to 
another element, the following exception is thrown:
java.lang.IllegalArgumentException: null is not a GraphicsNode
    at 
org.apache.batik.gvt.CompositeGraphicsNode.add(CompositeGraphicsNode.java:686)
    at 
org.apache.batik.bridge.SVGUseElementBridge.buildCompositeGraphicsNode(SVGUseElementBridge.java:220)
    at 
org.apache.batik.bridge.SVGUseElementBridge.createGraphicsNode(SVGUseElementBridge.java:98)
    at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:213)
    at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
    at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:219)
    at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
    at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:82)
    at org.apache.batik.swing.svg.GVTTreeBuilder.run(GVTTreeBuilder.java:96) 

 

See the attached svg file.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to