Skip to content

Commit

Permalink
fix: null pointer deref issue spotted by codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Sep 27, 2023
1 parent aa6b976 commit 19a20e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dpp/events/guild_emojis_update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void guild_emojis_update::handle(discord_client* client, json &j, const std::str
}
if (!client->creator->on_guild_emojis_update.empty()) {
dpp::guild_emojis_update_t geu(client, raw);
geu.emojis = g->emojis;
geu.emojis = g ? g->emojis : nullptr;
geu.updating_guild = g;
client->creator->on_guild_emojis_update.call(geu);
}
Expand Down

0 comments on commit 19a20e8

Please sign in to comment.