Change nullptr

This commit is contained in:
Andrea Cavalli 2020-12-25 19:09:24 +01:00
parent e1271c7fa5
commit 2144560f9d

View File

@ -5960,7 +5960,9 @@ void ContactsManager::on_create_channel_group_call(ChannelId channel_id, InputGr
}
Channel *c = get_channel(channel_id);
CHECK(c != nullptr);
if (c == nullptr) {
return promise.set_error(Status::Error(500, "Channel not found"));
}
if (!c->has_active_group_call) {
c->has_active_group_call = true;
c->is_changed = true;