fix crash

This commit is contained in:
ouwou
2020-09-15 00:40:30 -04:00
parent f0ca473f6a
commit b8b47b429e

View File

@@ -212,7 +212,9 @@ void MemberList::UpdateMemberListInternal() {
add_role("@everyone");
for (const auto &id : roleless_users) {
add_user(discord.GetUser(id));
const auto *user = discord.GetUser(id);
if (user != nullptr)
add_user(user);
}
}