diff --git a/weex_core/Source/core/layout/layout.cpp b/weex_core/Source/core/layout/layout.cpp index aeab1e9d18..f43d5f2103 100644 --- a/weex_core/Source/core/layout/layout.cpp +++ b/weex_core/Source/core/layout/layout.cpp @@ -1129,6 +1129,9 @@ namespace WeexCore { if (child == nullptr) { continue; } + if (child->mLayoutResult == nullptr || child->mCssStyle == nullptr) { + continue; + } // determin direction if (child->mLayoutResult->mLayoutDirection == kDirectionInherit) { if(child->mCssStyle->mDirection == kDirectionInherit) {