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

Commit 320979e

Browse files
authored
Update WXRecyclerUpdateController.m
Fix one crash. ``` *** -[__NSDictionaryM setObject:forKey:]: key cannot be nil ``` This exception will be yelled at line 167.
1 parent 7102479 commit 320979e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ - (void)performBatchUpdates
146146
[self.delegate updateController:self willPerformUpdateWithNewData:newData];
147147
[UIView setAnimationsEnabled:NO];
148148
WXLogDebug(@"UICollectionView update:%@", diffResult);
149+
if(!diffResult.hasChanges) { return ; }
149150
[self applyUpdate:diffResult toCollectionView:self.collectionView];
150151
} copy];
151152

0 commit comments

Comments
 (0)