diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 358227a3..3d9b671d 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -2320,7 +2320,8 @@ void do_messenger(Messenger *m) size_t c; for (c = 0; c < m->numchats; c++) { - Assoc_status(m->chats[c]->assoc); + if (m->chats[c]) + Assoc_status(m->chats[c]->assoc); } }