aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/thread/VersionCheckTask.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/thread/VersionCheckTask.cpp')
-rw-r--r--src/ui/thread/VersionCheckTask.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ui/thread/VersionCheckTask.cpp b/src/ui/thread/VersionCheckTask.cpp
index 9bda0ddd..e9490e1c 100644
--- a/src/ui/thread/VersionCheckTask.cpp
+++ b/src/ui/thread/VersionCheckTask.cpp
@@ -137,8 +137,14 @@ void VersionCheckTask::slot_parse_current_version_info() {
try {
if (current_reply_ == nullptr ||
current_reply_->error() != QNetworkReply::NoError) {
- SPDLOG_ERROR("current version request network error: {}",
- current_reply_->errorString().toStdString());
+ if (current_reply_ != nullptr) {
+ SPDLOG_ERROR("current version request network error: {}",
+ current_reply_->errorString().toStdString());
+ } else {
+ SPDLOG_ERROR(
+ "current version request network error, null reply object");
+ }
+
version_.current_version_found = false;
version_.load_info_done = false;
} else {