diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-06-08 14:13:31 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-06-08 14:13:31 +0200 |
commit | 76e1e86165e6d7fc6850d4be0bd8624c9bd3b8c0 (patch) | |
tree | d12c96dff841c475196c669a070a370bf62c019d /src/main/java/de/pixart/messenger/xmpp/jingle | |
parent | 82a30751351329f670fc85e58d125fe1c33e4889 (diff) |
handle invalid canditates in jingle
Diffstat (limited to 'src/main/java/de/pixart/messenger/xmpp/jingle')
-rw-r--r-- | src/main/java/de/pixart/messenger/xmpp/jingle/JingleCandidate.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/xmpp/jingle/JingleCandidate.java b/src/main/java/de/pixart/messenger/xmpp/jingle/JingleCandidate.java index e47b01d89..8a5c1cfe3 100644 --- a/src/main/java/de/pixart/messenger/xmpp/jingle/JingleCandidate.java +++ b/src/main/java/de/pixart/messenger/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; |