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:
Albert Vaca Cintora
2025-10-04 19:59:28 +02:00
parent 5045d47cd2
commit 647dd6ca27

View File

@@ -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);
}