Skip to content

Commit

Permalink
* [android] fix getView()==null crash
Browse files Browse the repository at this point in the history
  • Loading branch information
zshshr committed Jun 12, 2016
1 parent 267c478 commit b0ca974
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,9 @@ public void createViewImpl(WXVContainer parent, int index) {
for (int i = 0; i < count; ++i) {
getChild(i).createViewImpl(this, i);
}

getView().setClipToPadding(false);
if(getView()!=null){
getView().setClipToPadding(false);
}
}

@Override
Expand Down

0 comments on commit b0ca974

Please sign in to comment.