Skip to content
Snippets Groups Projects
Commit e2f05d65 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

configurationmanager: avoid nullptr exception

Change-Id: I505b63153f49aa9733d278c613c9813c67febb62
parent 083f6728
No related branches found
No related tags found
No related merge requests found
......@@ -1047,9 +1047,8 @@ pushNotificationReceived(const std::string& from, const std::map<std::string, st
try {
auto it = data.find("to");
if (it != data.end()) {
auto account = jami::Manager::instance().getAccount<JamiAccount>(it->second);
account->pushNotificationReceived(from, data);
if (auto account = jami::Manager::instance().getAccount<JamiAccount>(it->second))
account->pushNotificationReceived(from, data);
}
#if defined(__ANDROID__) || defined(ANDROID) || defined(__Apple__)
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment