diff --git a/src/org/kde/kdeconnect/Device.java b/src/org/kde/kdeconnect/Device.java index c9dd85b3..9fe583cb 100644 --- a/src/org/kde/kdeconnect/Device.java +++ b/src/org/kde/kdeconnect/Device.java @@ -549,6 +549,7 @@ public class Device implements BaseLink.PackageReceiver { //Make a copy to avoid concurrent modification exception if the original list changes ArrayList mLinks = new ArrayList(links); for (final BaseLink link : mLinks) { + if (link == null) continue; //Since we made a copy, maybe somebody destroyed the link in the meanwhile if (useEncryption) { link.sendPackageEncrypted(np, callback, publicKey); } else {