From c965049605c360c93a898ae0a6382e2b091dae62 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Wed, 22 May 2019 17:30:51 +0200 Subject: [PATCH] handle invalid canditates in jingle --- .../eu/siacs/conversations/xmpp/jingle/JingleCandidate.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleCandidate.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleCandidate.java index 64db37f66..d48804691 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleCandidate.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleCandidate.java @@ -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;