Skip to content

Commit

Permalink
fix(ios): add a null protection to animator
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwcg committed Feb 28, 2024
1 parent 14b3ab1 commit 84b391b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ios/sdk/module/animation2/pop/HPOPBasicAnimationInternal.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ struct _POPBasicAnimationState : _POPPropertyAnimationState
}

// interpolate and advance
if (!fromVec || !toVec || !currentVec) {
return false;
}
interpolate(valueType, valueCount, fromVec->data(), toVec->data(), currentVec->data(), p);
progress = p;
clampCurrentValue();
Expand Down

0 comments on commit 84b391b

Please sign in to comment.