aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/CacheManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/function/CacheManager.cpp')
-rw-r--r--src/core/function/CacheManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/function/CacheManager.cpp b/src/core/function/CacheManager.cpp
index 05138025..aed3a517 100644
--- a/src/core/function/CacheManager.cpp
+++ b/src/core/function/CacheManager.cpp
@@ -221,7 +221,7 @@ class CacheManager::Impl : public QObject {
// get cache data list from file system
QJsonArray registered_key_list;
- if (stored_data->isArray()) {
+ if (stored_data.has_value() && stored_data->isArray()) {
registered_key_list = stored_data->array();
} else {
GpgFrontend::DataObjectOperator::GetInstance().SaveDataObj(