You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by cx...@apache.org on 2017/03/07 07:55:51 UTC
[5/8] incubator-weex git commit: * [ios] fix crash : numberOfSections
will return 1 while datasource is nil, thus cause performBatchedUpdates crash
* [ios] fix crash : numberOfSections will return 1 while datasource is nil, thus cause performBatchedUpdates crash
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/7b9016ce
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/7b9016ce
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/7b9016ce
Branch: refs/heads/0.11-dev
Commit: 7b9016ce8a9eeb665e5f331a120f70f4de84c8fb
Parents: f92b6d6
Author: \u9690\u98ce <cx...@apache.org>
Authored: Tue Mar 7 15:17:14 2017 +0800
Committer: \u9690\u98ce <cx...@apache.org>
Committed: Tue Mar 7 15:17:14 2017 +0800
----------------------------------------------------------------------
.../Sources/Component/Recycler/WXRecyclerUpdateController.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/7b9016ce/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m b/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m
index 87094d9..5666b4f 100644
--- a/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m
+++ b/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m
@@ -148,7 +148,7 @@
self.isUpdating = YES;
- if (!self.delegate) {
+ if (!self.delegate || !collectionView.dataSource) {
return;
}