Skip to content

Commit 0cc40a7

Browse files
committed
Add animators null judgment
1 parent 7e855a8 commit 0cc40a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/src/main/java/com/wang/avi/Indicator.java

+3
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ private void startAnimators() {
106106
}
107107

108108
private void stopAnimators() {
109+
if (mAnimators==null){
110+
return;
111+
}
109112
for (ValueAnimator animator : mAnimators) {
110113
if (animator != null && animator.isStarted()) {
111114
animator.removeAllUpdateListeners();

0 commit comments

Comments
 (0)