summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@nokia.com>2011-07-05 13:53:57 (GMT)
committerJocelyn Turcotte <jocelyn.turcotte@nokia.com>2011-07-05 14:10:58 (GMT)
commitbe63b3e85c50e56b18d0f0bf93ad3b1c74049117 (patch)
tree74b44228bc510253c20f69f7848344ba93466d72 /src/network
parent296f64a839a6af458a98d36da4836cab1d5cbb8e (diff)
downloadQt-be63b3e85c50e56b18d0f0bf93ad3b1c74049117.zip
Qt-be63b3e85c50e56b18d0f0bf93ad3b1c74049117.tar.gz
Qt-be63b3e85c50e56b18d0f0bf93ad3b1c74049117.tar.bz2
Add a null check for the backend in QNetworkReplyImpl.
This is a blurry attempt to fix a crash happening during bearer session loss/recovery. Reviewed-by: Markus Goetz
Diffstat (limited to 'src/network')
-rw-r--r--src/network/access/qnetworkreplyimpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qnetworkreplyimpl.cpp b/src/network/access/qnetworkreplyimpl.cpp
index 574b6e9..8a0a944 100644
--- a/src/network/access/qnetworkreplyimpl.cpp
+++ b/src/network/access/qnetworkreplyimpl.cpp
@@ -924,7 +924,7 @@ bool QNetworkReplyImplPrivate::migrateBackend()
return true;
// Backend does not support resuming download.
- if (!backend->canResume())
+ if (backend && !backend->canResume())
return false;
state = QNetworkReplyImplPrivate::Reconnecting;