Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException on empty polygon object #666

Open
mgmax opened this issue Jan 29, 2023 · 0 comments
Open

NullPointerException on empty polygon object #666

mgmax opened this issue Jan 29, 2023 · 0 comments
Labels

Comments

@mgmax
Copy link
Collaborator

mgmax commented Jan 29, 2023

The following file results in
java.lang.NullPointerException: Cannot invoke "com.kitfox.svg.SVGDiagram.getRoot()" because the return value of "com.kitfox.svg.SVGUniverse.getDiagram(java.net.URI)" is null

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   version="1.1"
   viewBox="0 0 595.4 842.4">
    <polygon points=""/>
</svg>

(minimized from a real-world example)

@mgmax mgmax added the Bug label Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant