aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/de/pixart/messenger/xmpp/jingle/JingleCandidate.java4
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;