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

NPE when parsing cubic operation #27

Closed
GoogleCodeExporter opened this issue Jul 24, 2015 · 1 comment
Closed

NPE when parsing cubic operation #27

GoogleCodeExporter opened this issue Jul 24, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Attached is the svg file I used that was saved from inkscape. svg-android can 
parse it. Chrome can parse it.

I have a larger svg with more of these examples if this is insufficient.

E/AndroidRuntime(21629): Caused by: java.lang.NullPointerException
E/AndroidRuntime(21629):    at 
com.caverock.androidsvg.SVGParser.parsePath(SVGParser.java:3674)
E/AndroidRuntime(21629):    at 
com.caverock.androidsvg.SVGParser.parseAttributesPath(SVGParser.java:1091)
E/AndroidRuntime(21629):    at 
com.caverock.androidsvg.SVGParser.path(SVGParser.java:1078)
E/AndroidRuntime(21629):    at 
com.caverock.androidsvg.SVGParser.startElement(SVGParser.java:629)
E/AndroidRuntime(21629):    at 
org.apache.harmony.xml.ExpatParser.startElement(ExpatParser.java:143)
E/AndroidRuntime(21629):    at 
org.apache.harmony.xml.ExpatParser.appendBytes(Native Method)
E/AndroidRuntime(21629):    at 
org.apache.harmony.xml.ExpatParser.parseFragment(ExpatParser.java:513)
E/AndroidRuntime(21629):    at 
org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:474)
E/AndroidRuntime(21629):    at 
org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:321)
E/AndroidRuntime(21629):    at 
org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:279)
E/AndroidRuntime(21629):    at 
com.caverock.androidsvg.SVGParser.parse(SVGParser.java:576)
E/AndroidRuntime(21629):    at 
com.caverock.androidsvg.SVG.getFromResource(SVG.java:172)

Original issue reported on code.google.com by taylor.b...@gmail.com on 7 Jan 2014 at 12:31

Attachments:

@GoogleCodeExporter
Copy link
Author

This issue is a duplicate of Issue 13.

The fix will be available in the upcoming release 1.3.0.

Original comment by paul.leb...@gmail.com on 7 Jan 2014 at 3:59

  • Changed state: Duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant