summaryrefslogtreecommitdiffstats
path: root/tests/manual/qnetworkaccessmanager
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/qnetworkaccessmanager')
-rw-r--r--tests/manual/qnetworkaccessmanager/qget/transferitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/qnetworkaccessmanager/qget/transferitem.cpp b/tests/manual/qnetworkaccessmanager/qget/transferitem.cpp
index 1565292e6d..dcff73df2f 100644
--- a/tests/manual/qnetworkaccessmanager/qget/transferitem.cpp
+++ b/tests/manual/qnetworkaccessmanager/qget/transferitem.cpp
@@ -122,7 +122,7 @@ void DownloadItem::finished()
qDebug() << "too many redirects";
} else {
//follow redirect
- if (outputFile->isOpen()) {
+ if (outputFile && outputFile->isOpen()) {
if (!outputFile->seek(0) || !outputFile->resize(0)) {
outputFile->close();
outputFile->remove();