1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 05:52:06 +01:00

Don't rethrow RuntimeExceptions in parseAndProcessStanza

This commit is contained in:
Florian Schmaus 2015-03-25 09:50:54 +01:00
parent 0897b76718
commit 72f41e20b1

View file

@ -957,10 +957,6 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
stanza = PacketParserUtils.parseStanza(parser); stanza = PacketParserUtils.parseStanza(parser);
} }
catch (Exception e) { catch (Exception e) {
// Always re-throw runtime exceptions, they are fatal
if (e instanceof RuntimeException) {
throw (RuntimeException) e;
}
CharSequence content = PacketParserUtils.parseContentDepth(parser, CharSequence content = PacketParserUtils.parseContentDepth(parser,
parserDepth); parserDepth);
UnparsablePacket message = new UnparsablePacket(content, e); UnparsablePacket message = new UnparsablePacket(content, e);