From 53a038d90ebe5937405b2a58360c81b9b87e935a Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 30 Jan 2021 01:47:03 +0100 Subject: [PATCH] fix rtp offline discovery --- src/main/java/eu/siacs/conversations/entities/Contact.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/entities/Contact.java b/src/main/java/eu/siacs/conversations/entities/Contact.java index 5453f9c23..56e1ec02e 100644 --- a/src/main/java/eu/siacs/conversations/entities/Contact.java +++ b/src/main/java/eu/siacs/conversations/entities/Contact.java @@ -588,8 +588,7 @@ public class Contact implements ListItem, Blockable { } public RtpCapability.Capability getRtpCapability() { - - return this.rtpCapability; + return this.rtpCapability == null ? RtpCapability.Capability.NONE : this.rtpCapability; } public static final class Options {