Fixing crash in MessagesViewController.

pull/1/head
Frederic Jacobs 11 years ago
parent 6868e2234d
commit daa6bfd650

@ -626,6 +626,11 @@ typedef enum : NSUInteger {
rowChanges:&messageRowChanges rowChanges:&messageRowChanges
forNotifications:notifications forNotifications:notifications
withMappings:self.messageMappings]; withMappings:self.messageMappings];
if (!messageRowChanges) {
return;
}
for (YapDatabaseViewRowChange *rowChange in messageRowChanges) for (YapDatabaseViewRowChange *rowChange in messageRowChanges)
{ {
switch (rowChange.type) switch (rowChange.type)

Loading…
Cancel
Save