2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-29 05:07:40 +00:00

Fixed crash

This commit is contained in:
Albert Vaca 2015-04-04 14:41:22 -07:00
parent 9cf9f43118
commit c3ad265490

View File

@ -549,6 +549,7 @@ public class Device implements BaseLink.PackageReceiver {
//Make a copy to avoid concurrent modification exception if the original list changes
ArrayList<BaseLink> mLinks = new ArrayList<BaseLink>(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 {