From daa6bfd650c2a1f136821dfefb8ee0c9f24fd3d8 Mon Sep 17 00:00:00 2001 From: Frederic Jacobs Date: Mon, 8 Dec 2014 23:12:22 +0100 Subject: [PATCH] Fixing crash in MessagesViewController. --- Signal/src/view controllers/MessagesViewController.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Signal/src/view controllers/MessagesViewController.m b/Signal/src/view controllers/MessagesViewController.m index ffd10c1e3..91b3ac5c8 100644 --- a/Signal/src/view controllers/MessagesViewController.m +++ b/Signal/src/view controllers/MessagesViewController.m @@ -626,6 +626,11 @@ typedef enum : NSUInteger { rowChanges:&messageRowChanges forNotifications:notifications withMappings:self.messageMappings]; + + if (!messageRowChanges) { + return; + } + for (YapDatabaseViewRowChange *rowChange in messageRowChanges) { switch (rowChange.type)