[Bug Fix] Fix scenario where dereferenced object could be null. (#2784)

This commit is contained in:
Aeadoin
2023-01-23 18:40:23 -05:00
committed by GitHub
parent 93eddf603b
commit 4d355afe9d
3 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -2358,7 +2358,7 @@ bool BotDatabase::LoadLeaderIDByBotGroupID(const uint32 group_id, uint32& leader
bool BotDatabase::LoadBotGroupNameByBotGroupID(const uint32 group_id, std::string& botgroup_name)
{
if (!group_id) {
false;
return false;
}
query = fmt::format(