raisedragon / pircbotx

Automatically exported from code.google.com/p/pircbotx
0 stars 0 forks source link

DCC NumberFormatException #229

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
DCC SEND abcde.txt 624634131 4001 4157591572

java.lang.NumberFormatException: For input string: "4157591572"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:495)
    at java.lang.Integer.parseInt(Integer.java:527)
    at org.pircbotx.dcc.DccHandler.processDcc(DccHandler.java:83)
    at org.pircbotx.InputParser.processCommand(InputParser.java:500)
    at org.pircbotx.InputParser.handleLine(InputParser.java:353)
    at org.pircbotx.PircBotX.startLineProcessing(PircBotX.java:386)
    at org.pircbotx.PircBotX.connect(PircBotX.java:335)
    at org.pircbotx.PircBotX.startBot(PircBotX.java:185)

Both on latest stable and head.

Original issue reported on code.google.com by erpalma2...@gmail.com on 23 Jan 2015 at 4:13

GoogleCodeExporter commented 9 years ago
Fixed in Revision f3e77079b9ac and added tests, thanks for the report

Original comment by Lord.Qua...@gmail.com on 24 Jan 2015 at 5:10