diff options
author | Saturneric <[email protected]> | 2023-02-25 09:12:19 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2023-02-25 09:12:19 +0000 |
commit | 3c63ef69ff5fa6c5b355324dd6a3523fcc8ec042 (patch) | |
tree | 1407140c54c0916b763392fdd8c14745ef7e5af6 /src/ui/thread/VersionCheckTask.cpp | |
parent | fix: improve ci configs (diff) | |
download | GpgFrontend-3c63ef69ff5fa6c5b355324dd6a3523fcc8ec042.tar.gz GpgFrontend-3c63ef69ff5fa6c5b355324dd6a3523fcc8ec042.zip |
fix: solve codacy issues
Diffstat (limited to '')
-rw-r--r-- | src/ui/thread/VersionCheckTask.cpp | 10 |
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 { |