1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-25 12:08:00 +01:00

Add IllegalArgumentException to parsing exceptions

As it is thrown by many Element constructors.
This commit is contained in:
Florian Schmaus 2019-08-27 09:00:22 +02:00
parent 944dd71976
commit 851bd3c5dd

View file

@ -1256,7 +1256,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
try {
stanza = PacketParserUtils.parseStanza(parser, incomingStreamXmlEnvironment);
}
catch (XmlPullParserException | SmackParsingException | IOException e) {
catch (XmlPullParserException | SmackParsingException | IOException | IllegalArgumentException e) {
CharSequence content = PacketParserUtils.parseContentDepth(parser,
parserDepth);
UnparseableStanza message = new UnparseableStanza(content, e);