zakariachowdhury / androidsvg

Automatically exported from code.google.com/p/androidsvg
0 stars 0 forks source link

NPE when parsing cubic operation #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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