Skip to content

Commit

Permalink
Check for null pointers in OTM (#1554)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcague authored Mar 12, 2020
1 parent 4e048a0 commit ad4af20
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions erizo/src/erizo/OneToManyProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ namespace erizo {
bool OneToManyProcessor::isSSRCFromAudio(uint32_t ssrc) {
std::map<std::string, std::shared_ptr<MediaSink>>::iterator it;
for (it = subscribers.begin(); it != subscribers.end(); ++it) {
if ((*it).second->getAudioSinkSSRC() == ssrc) {
return true;
if ((*it).second != nullptr) {
if ((*it).second->getAudioSinkSSRC() == ssrc) {
return true;
}
}
}
return false;
Expand Down

0 comments on commit ad4af20

Please sign in to comment.