From 72f41e20b1477127be41b2163124b2461c499253 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 25 Mar 2015 09:50:54 +0100 Subject: [PATCH] Don't rethrow RuntimeExceptions in parseAndProcessStanza --- .../java/org/jivesoftware/smack/AbstractXMPPConnection.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java b/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java index f0061dd2c..7065231fe 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java @@ -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);