From 320979ece56e10c76ff6b7239c0fb360f76437ff Mon Sep 17 00:00:00 2001 From: AntiMoron Date: Tue, 22 May 2018 12:13:19 +0800 Subject: [PATCH] Update WXRecyclerUpdateController.m Fix one crash. ``` *** -[__NSDictionaryM setObject:forKey:]: key cannot be nil ``` This exception will be yelled at line 167. --- .../Sources/Component/Recycler/WXRecyclerUpdateController.m | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m b/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m index 7435c8de4d..5f92f2993b 100644 --- a/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m +++ b/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m @@ -146,6 +146,7 @@ - (void)performBatchUpdates [self.delegate updateController:self willPerformUpdateWithNewData:newData]; [UIView setAnimationsEnabled:NO]; WXLogDebug(@"UICollectionView update:%@", diffResult); + if(!diffResult.hasChanges) { return ; } [self applyUpdate:diffResult toCollectionView:self.collectionView]; } copy];