Skip to content
Snippets Groups Projects
Commit 72b3b4ae authored by Adrien Béraud's avatar Adrien Béraud
Browse files

account: check for config

Change-Id: Icc7de5a119748b0b608245d7e66139cf330708f8
parent 3670cabd
Branches
No related tags found
No related merge requests found
......@@ -229,7 +229,7 @@ public:
virtual bool setPushNotificationToken(const std::string& pushDeviceToken = "")
{
std::lock_guard<std::recursive_mutex> lock(configurationMutex_);
if (config_->deviceKey != pushDeviceToken) {
if (config_ && config_->deviceKey != pushDeviceToken) {
config_->deviceKey = pushDeviceToken;
saveConfig();
return true;
......@@ -240,7 +240,7 @@ public:
virtual bool setPushNotificationTopic(const std::string& topic = "")
{
std::lock_guard<std::recursive_mutex> lock(configurationMutex_);
if (config_->notificationTopic != topic) {
if (config_ && config_->notificationTopic != topic) {
config_->notificationTopic = topic;
saveConfig();
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment