1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 02:27:58 +01:00

[im] DirectoryRosterStore.readEntry() should also catch IllegalArgumentException

Fixes SMACK-897.
This commit is contained in:
Florian Schmaus 2021-01-06 13:48:03 +01:00
parent d64ee785bd
commit 40aa9e87b7

View file

@ -195,7 +195,7 @@ public final class DirectoryRosterStore implements RosterStore {
Item item = RosterPacketProvider.parseItem(parser);
reader.close();
return item;
} catch (XmlPullParserException | IOException e) {
} catch (XmlPullParserException | IOException | IllegalArgumentException e) {
boolean deleted = file.delete();
String message = "Exception while parsing roster entry.";
if (deleted) {