From f3f4e7720a9220e2f2c5c137f6673f18f6a13075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Wed, 25 Apr 2018 22:15:30 +0200 Subject: [PATCH] Early return if the compressed archive delegate is null --- compressed_archive/unarr/compressed_archive.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compressed_archive/unarr/compressed_archive.cpp b/compressed_archive/unarr/compressed_archive.cpp index c16f1015..af021924 100644 --- a/compressed_archive/unarr/compressed_archive.cpp +++ b/compressed_archive/unarr/compressed_archive.cpp @@ -93,7 +93,7 @@ void CompressedArchive::getAllData(const QVector & indexes, ExtractDele int i=0; while (i < indexes.count()) { - if(delegate->isCancelled()) + if(delegate == nullptr || delegate->isCancelled()) { return; }