BigBadaboom / androidsvg

SVG rendering library for Android
http://bigbadaboom.github.io/androidsvg/
Apache License 2.0
1.21k stars 231 forks source link

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.StringBuilder.toString()' on a null object reference at com.caverock.androidsvg.SVGParser.endElement(SVGParser.java:798) #212

Closed catkbm closed 2 years ago

catkbm commented 3 years ago

Some SVG images are not parsing correctly, getting that issue. Thanks in advance

catkbm commented 3 years ago

Some SVG images are not parsing correctly, getting that issue. Thanks in advance

BigBadaboom commented 3 years ago

Hi. Thanks for the report.

This might be the same problem as Issue #177, but they were not able to provide a test file, so I ended up closing the bug.

lystyp commented 2 years ago

I meet with the same problem, but I show svg image by glide library.

gradle : implementation 'com.github.bumptech.glide:glide:4.12.0' implementation 'com.caverock:androidsvg:1.2.1' annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'

svg url : http://www.svgrepo.com/show/382174/book-education-learning-puzzle-school-study.svg

Update : I use 'com.caverock:androidsvg:1.4' and this problem has been soleved.

BigBadaboom commented 2 years ago

@lystyp Thanks for the update. I tried your file also and had no issues rendering it.

BigBadaboom commented 2 years ago

No response from original reporter. So I'm reluctantly closing this issue. I'm going to assume that OP was using an old version of