From 0cea53540e2d287b3ee5c51f829efe1e242c9f04 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Sat, 18 Jul 2020 23:50:41 +0200 Subject: [PATCH] incomingCapabilities can be null --- src/org/kde/kdeconnect/Device.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/org/kde/kdeconnect/Device.java b/src/org/kde/kdeconnect/Device.java index 78dfa51a..c810d177 100644 --- a/src/org/kde/kdeconnect/Device.java +++ b/src/org/kde/kdeconnect/Device.java @@ -97,7 +97,11 @@ public class Device implements BaseLink.PacketReceiver { private Set incomingCapabilities = new HashSet<>(); public boolean supportsPacketType(String type) { - return incomingCapabilities.contains(type); + if (incomingCapabilities == null) { + return true; + } else { + return incomingCapabilities.contains(type); + } } public interface PluginsChangedListener {