mirror of
https://invent.kde.org/network/kdeconnect-android.git
synced 2025-10-06 00:23:01 +02:00
ContactsHelper: Catch any exception parsing VCards
If a card can't be parsed, we should not fail the whole batch. BUG: 509497
This commit is contained in:
@@ -156,7 +156,7 @@ public class ContactsHelper {
|
||||
}
|
||||
final List<String> lines = IOUtils.readLines(input, Charsets.UTF_8);
|
||||
toReturn.put(ID, new VCardBuilder(StringUtils.join(lines, '\n')));
|
||||
} catch (IOException | NullPointerException e) {
|
||||
} catch (Exception e) {
|
||||
// If you are experiencing this, please open a bug report indicating how you got here
|
||||
Log.e("Contacts", "Exception while fetching vcards", e);
|
||||
}
|
||||
|
Reference in New Issue
Block a user