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

Commit

Permalink
[Core] Protect potential crash. (#2430)
Browse files Browse the repository at this point in the history
  • Loading branch information
wqyfavor authored and jianhan-he committed May 13, 2019
1 parent ba6d09c commit 8772d40
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 @@ -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) {
Expand Down

0 comments on commit 8772d40

Please sign in to comment.