handle invalid canditates in jingle

This commit is contained in:
Daniel Gultsch 2019-05-22 17:30:51 +02:00
parent 132f81df23
commit c965049605
1 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,10 @@ public class JingleCandidate {
}
public void setType(String type) {
if (type == null) {
this.type = TYPE_UNKNOWN;
return;
}
switch (type) {
case "proxy":
this.type = TYPE_PROXY;