aelmahalawey / androidsvg

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

java.lang.ArrayIndexOutOfBoundsException: length=0; index=-2 in SVGAndroidRenderer.arcTo(SourceFile:2572) #62

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
No specific steps to reproduce.

java.lang.ArrayIndexOutOfBoundsException: length=0; index=-2
at com.caverock.androidsvg.SVGAndroidRenderer.arcTo(SourceFile:2572)
at com.caverock.androidsvg.SVGAndroidRenderer.access$5(SourceFile:2463)
at 
com.caverock.androidsvg.SVGAndroidRenderer$PathConverter.arcTo(SourceFile:2437)
at com.caverock.androidsvg.SVG$PathDefinition.enumeratePath(SourceFile:2024)
at 
com.caverock.androidsvg.SVGAndroidRenderer$PathConverter.<init>(SourceFile:2394)
at com.caverock.androidsvg.SVGAndroidRenderer.render(SourceFile:972)
at com.caverock.androidsvg.SVGAndroidRenderer.render(SourceFile:298)
at com.caverock.androidsvg.SVGAndroidRenderer.renderChildren(SourceFile:330)
at com.caverock.androidsvg.SVGAndroidRenderer.render(SourceFile:584)
at com.caverock.androidsvg.SVGAndroidRenderer.renderDocument(SourceFile:267)
at com.caverock.androidsvg.SVG.renderToPicture(SourceFile:306)
at com.caverock.androidsvg.SVG.renderToPicture(SourceFile:282)
at com.caverock.androidsvg.SVGImageView.setSVG(SourceFile:116)

What is the expected output? What do you see instead?
No crashes

What version of the product are you using? On what operating system?
- com.caverock:androidsvg:1.2.1
- Android 4.4.2 & 4.4.4

Please provide any additional information below.
Probably, in the latest code base, java.lang.ArrayIndexOutOfBoundsException is 
thrown from the following line:
https://code.google.com/p/androidsvg/source/browse/src/com/caverock/androidsvg/S
VGAndroidRenderer.java#2658

Original issue reported on code.google.com by yonghoo...@gmail.com on 8 May 2015 at 12:10

GoogleCodeExporter commented 8 years ago
Thanks for the report. Do you have a sample SVG that triggers the error?

Original comment by paul.leb...@gmail.com on 8 May 2015 at 1:36