Skip to content

Commit

Permalink
fix(ios): animation nullptr crash
Browse files Browse the repository at this point in the history
  • Loading branch information
etkmao authored and wwwcg committed May 29, 2024
1 parent 240f664 commit 64294cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dom/src/dom/animation/animation_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ void AnimationManager::EmplaceNodeProp(const std::shared_ptr<DomNode>& node, con
animation_nodes_map_.insert({animation_id, nodeIds});
}
auto animation = GetAnimation(animation_id);
node->EmplaceStyleMap(prop, HippyValue(animation->GetStartValue()));
if (animation) {
node->EmplaceStyleMap(prop, HippyValue(animation->GetStartValue()));
}
}

void AnimationManager::ParseAnimation(const std::shared_ptr<DomNode>& node) {
Expand Down

0 comments on commit 64294cd

Please sign in to comment.