Fixes case where LocalCandidate object has not ufrag set which can lead to NullPointerException.
This commit is contained in:
parent
51e10fcf16
commit
6d912a0fa1
@ -1093,7 +1093,8 @@ public class Agent
|
|||||||
{
|
{
|
||||||
for(LocalCandidate cnd : c.getLocalCandidates())
|
for(LocalCandidate cnd : c.getLocalCandidates())
|
||||||
{
|
{
|
||||||
if(cnd != null && cnd.getUfrag().equals(ufrag))
|
if(cnd != null && cnd.getUfrag() != null &&
|
||||||
|
cnd.getUfrag().equals(ufrag))
|
||||||
return cnd;
|
return cnd;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user