From 60c101d90b42c0d02cf062fecdc36f2b888c8010 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Wed, 24 Feb 2016 19:52:14 +0100 Subject: [PATCH] PropagatorDownload: fix possible crash Backtrace seen from the crash reporter where reply() is null. --- src/libsync/propagatedownload.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();