From d11913e42750c4461814d6245f306416fc975da2 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Tue, 11 Aug 2015 11:07:09 +0200 Subject: [PATCH] Fixed crash on webpage request error --- src/channelaggregator.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/channelaggregator.cpp b/src/channelaggregator.cpp index f64272b..57bc5dd 100644 --- a/src/channelaggregator.cpp +++ b/src/channelaggregator.cpp @@ -119,8 +119,10 @@ void ChannelAggregator::parseWebPage(const QByteArray &bytes) { hasNewVideos = videoId != latestVideoId; } if (hasNewVideos) { - reallyProcessChannel(currentChannel); - currentChannel = 0; + if (currentChannel) { + reallyProcessChannel(currentChannel); + currentChannel = 0; + } } else { currentChannel->updateChecked(); currentChannel = 0; -- 2.39.5