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

View File

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