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 00d19c4f0..a8e0909c6 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java @@ -1462,7 +1462,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection { try { try { stanza = PacketParserUtils.parseStanza(parser, incomingStreamXmlEnvironment); - } catch (NullPointerException | NumberFormatException e) { + } catch (NullPointerException e) { // Those exceptions should probably be wrapped into a SmackParsingException and therefore likely constitute a missing verification in the throwing parser. String message = "Smack parser throw unexpected exception '" + e.getMessage() + "', please report this at " + Smack.BUG_REPORT_URL; LOGGER.log(Level.SEVERE, message, e);