2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-22 18:07:55 +00:00

Explicitly capturing plugins exceptions to avoid them being lost magically

This commit is contained in:
Albert Vaca 2014-06-18 22:53:52 +02:00
parent 53bb376990
commit 7ae687ae11

View File

@ -456,7 +456,13 @@ public class Device implements BaseLink.PackageReceiver {
} else { } else {
for (Plugin plugin : plugins.values()) { for (Plugin plugin : plugins.values()) {
plugin.onPackageReceived(np); try {
plugin.onPackageReceived(np);
} catch (Exception e) {
e.printStackTrace();
Log.e("Device", "Exception in "+plugin.getDisplayName()+"'s onPackageReceived()");
}
} }
} }