mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-05 08:35:10 +00:00
Fix NPE
Apparently removeLink can be called when there are no links already
This commit is contained in:
@@ -534,8 +534,10 @@ public class Device implements BaseLink.PacketReceiver {
|
||||
Log.i("KDE/Device", "removeLink: " + link.getLinkProvider().getName() + " -> " + getName() + " active links: " + links.size());
|
||||
if (links.isEmpty()) {
|
||||
reloadPluginsFromSettings();
|
||||
packetQueue.disconnected();
|
||||
packetQueue = null;
|
||||
if (packetQueue != null) {
|
||||
packetQueue.disconnected();
|
||||
packetQueue = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user