From: Flavio Tordini Date: Tue, 11 Aug 2015 09:07:09 +0000 (+0200) Subject: Fixed crash on webpage request error X-Git-Tag: 2.5~36 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d11913e42750c4461814d6245f306416fc975da2;p=minitube Fixed crash on webpage request error --- 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;