mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 21:55:10 +00:00
incomingCapabilities can be null
This commit is contained in:
@@ -97,7 +97,11 @@ public class Device implements BaseLink.PacketReceiver {
|
||||
private Set<String> 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 {
|
||||
|
Reference in New Issue
Block a user