Skip to content

Commit a445642

Browse files
committed
avoid crash.
1 parent 4b020f8 commit a445642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/opensource/svgaplayer/SVGAImageView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ open class SVGAImageView : ImageView {
9797
val typedArray = context.theme.obtainStyledAttributes(attrs, R.styleable.SVGAImageView, 0, 0)
9898
loops = typedArray.getInt(R.styleable.SVGAImageView_loopCount, 0)
9999
clearsAfterStop = typedArray.getBoolean(R.styleable.SVGAImageView_clearsAfterStop, true)
100-
typedArray.getString(R.styleable.SVGAImageView_source).let {
100+
typedArray.getString(R.styleable.SVGAImageView_source)?.let {
101101
val parser = SVGAParser(context)
102102
Thread({
103103
parser.parse(it)?.let {

0 commit comments

Comments
 (0)