Pārlūkot izejas kodu

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 gadus atpakaļ
vecāks
revīzija
086479ced0
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      src/com/dmdirc/addons/dcc/DCCSend.java

+ 1
- 1
src/com/dmdirc/addons/dcc/DCCSend.java Parādīt failu

369
             handler.socketClosed(this);
369
             handler.socketClosed(this);
370
         }
370
         }
371
         // Try to delete empty files.
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
             transferFile.delete();
373
             transferFile.delete();
374
         }
374
         }
375
         synchronized (SENDS) {
375
         synchronized (SENDS) {

Notiek ielāde…
Atcelt
Saglabāt