]> git.sur5r.net Git - minitube/commitdiff
Fixed crash on webpage request error
authorFlavio Tordini <flavio.tordini@gmail.com>
Tue, 11 Aug 2015 09:07:09 +0000 (11:07 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Tue, 11 Aug 2015 09:07:09 +0000 (11:07 +0200)
src/channelaggregator.cpp

index f64272bf7cfaed3e1b8e1773eb915e4184974a8a..57bc5dd73761650205071cd4763ee9a4d094dcff 100644 (file)
@@ -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;