From: Olivier Goffart Date: Wed, 24 Feb 2016 18:52:14 +0000 (+0100) Subject: PropagatorDownload: fix possible crash X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1346^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=60c101d90b42c0d02cf062fecdc36f2b888c8010;p=nextcloud-desktop.git PropagatorDownload: fix possible crash Backtrace seen from the crash reporter where reply() is null. --- diff --git a/src/libsync/propagatedownload.cpp b/src/libsync/propagatedownload.cpp index 2b6e0140e..dfc279511 100644 --- a/src/libsync/propagatedownload.cpp +++ b/src/libsync/propagatedownload.cpp @@ -286,7 +286,9 @@ void GETFileJob::slotReadyRead() void GETFileJob::slotTimeout() { - qDebug() << "Timeout" << reply()->request().url(); + qDebug() << "Timeout" << (reply() ? reply()->request().url() : path()); + if (!reply()) + return; _errorString = tr("Connection Timeout"); _errorStatus = SyncFileItem::FatalError; reply()->abort();