Fixes case where LocalCandidate object has not ufrag set which can lead to NullPointerException.

This commit is contained in:
seb 2011-09-21 08:25:07 +00:00
parent 51e10fcf16
commit 6d912a0fa1

View File

@ -1093,7 +1093,8 @@ public class Agent
{
for(LocalCandidate cnd : c.getLocalCandidates())
{
if(cnd != null && cnd.getUfrag().equals(ufrag))
if(cnd != null && cnd.getUfrag() != null &&
cnd.getUfrag().equals(ufrag))
return cnd;
}
}