ソースを参照

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年前
コミット
086479ced0
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      src/com/dmdirc/addons/dcc/DCCSend.java

+ 1
- 1
src/com/dmdirc/addons/dcc/DCCSend.java ファイルの表示

@@ -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) {

読み込み中…
キャンセル
保存