Browse Source

Check transfer file isnt null before trying to delete it

Fixes issue 3685

Change-Id: I4c2f504d87b6128c6c92a697592bf34061196863
Reviewed-on: http://gerrit.dmdirc.com/749
Automatic-Compile: Gregory Holmes <greg@dmdirc.com>
Reviewed-by: Gregory Holmes <greg@dmdirc.com>
tags/0.6.3
Gregory Holmes 14 years ago
parent
commit
086479ced0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/com/dmdirc/addons/dcc/DCCSend.java

+ 1
- 1
src/com/dmdirc/addons/dcc/DCCSend.java View File

@@ -369,7 +369,7 @@ public class DCCSend extends DCC {
369 369
             handler.socketClosed(this);
370 370
         }
371 371
         // Try to delete empty files.
372
-        if (transferType == TransferType.RECEIVE && transferFile.length() == 0) {
372
+        if (transferType == TransferType.RECEIVE && transferFile != null && transferFile.length() == 0) {
373 373
             transferFile.delete();
374 374
         }
375 375
         synchronized (SENDS) {

Loading…
Cancel
Save