[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
1 changed files with 1 additions and 1 deletions

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) {