zD12 / pircbotx

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

DCCHandler - getting NullPointerException #196

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

With these DCC-Messages:
1. << DCC SEND <FileName> 778660025 60844 1071602
2. >> DCC RESUME <FileName> 60844 0
3. << DCC ACCEPT <FileName> 60844 0
Values might differ but rest is the same. Looks like Valid DCC.
(>> means outgoing message and << incoming)

What is the expected output? What do you see instead?
A working transfer is to be expected. Instead I'm getting a 
NullPointerException on Line 165 in DCCHandler.

What version of the product are you using? On what operating system?
pircbotx-2.1-20140717.010033-47; On Win7-x64

Please provide any additional information below.

Good Work so far!

Original issue reported on code.google.com by ralf.w.1...@gmail.com on 8 Aug 2014 at 5:05

GoogleCodeExporter commented 9 years ago
First, use accept instead of acceptResume. In your line the user sent a normal 
dcc request with an already open port. You just need to connect to it

This is however a bug in how PircBotX handles DCC resumes. Fixed in Revision 
ef3bb20534af. Can you download the latest snapshot and see if it fixes your 
problem?

Original comment by Lord.Qua...@gmail.com on 4 Nov 2014 at 2:36