diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Discord/src/dispatch.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp index cab63a8d44..ac2c886857 100644 --- a/protocols/Discord/src/dispatch.cpp +++ b/protocols/Discord/src/dispatch.cpp @@ -277,7 +277,8 @@ void CDiscordProto::OnCommandGuildDeleted(const JSONNode &pRoot) for (auto &it : arUsers.rev_iter())
if (it->pGuild == pGuild) {
- db_delete_contact(it->si->hContact);
+ if (it->si)
+ db_delete_contact(it->si->hContact);
arUsers.removeItem(&it);
}
|