Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
Fix potential crash of layout node.
Browse files Browse the repository at this point in the history
  • Loading branch information
wqyfavor committed Apr 15, 2019
1 parent be06e3a commit f04b977
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions weex_core/Source/core/layout/layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,9 @@ namespace WeexCore {
void WXCoreLayoutNode::determineChildLayoutDirection(const WXCoreDirection direction) {
for (Index i = 0; i < getChildCount(kBFC); ++i) {
WXCoreLayoutNode *child = getChildAt(kBFC, i);
if (child == nullptr) {
continue;
}
// determin direction
if (child->mLayoutResult->mLayoutDirection == kDirectionInherit) {
if(child->mCssStyle->mDirection == kDirectionInherit) {
Expand Down

0 comments on commit f04b977

Please sign in to comment.