mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-25 21:42:07 +01:00
[core] Remove NumberFormatException from innermost try/catch in parseAndProcessStanza()
This was added in 02d8f53246
("[core] Increase resilience against
faulty parser implementions"). However, NumberFormatException is a
subclass of IllegalArgumentException, which is already catched by the
outermost catch.
This commit is contained in:
parent
0ee5acc494
commit
3b0c2f752f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue