From ecd27384d2b703af00a7a9312f94ca400f174194 Mon Sep 17 00:00:00 2001 From: Barijaona Ramaholimihaso Date: Fri, 25 Sep 2015 20:30:34 +0300 Subject: [PATCH] Fix a crash --- src/UnifiedDisplayView.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/UnifiedDisplayView.m b/src/UnifiedDisplayView.m index 5eefe0abdf..90a3430d85 100644 --- a/src/UnifiedDisplayView.m +++ b/src/UnifiedDisplayView.m @@ -343,7 +343,10 @@ - (void)webViewLoadFinished:(NSNotification *)notification } else { //non relevant cell [cell setInProgress:NO]; - [articleList reloadDataForRowIndexes:[NSIndexSet indexSetWithIndex:row] columnIndexes:[NSIndexSet indexSetWithIndex:0]]; + if (row < [[articleController allArticles] count]) + { + [articleList reloadDataForRowIndexes:[NSIndexSet indexSetWithIndex:row] columnIndexes:[NSIndexSet indexSetWithIndex:0]]; + } } } else { // not an ArticleCellView anymore