Fix NPE if downloading full ZIP and no starting file present

This commit is contained in:
Jorrit Jongma 2013-12-07 10:00:17 +01:00
parent 73fcb1546d
commit 6f85fabce3
1 changed files with 1096 additions and 1094 deletions

View File

@ -1065,7 +1065,9 @@ implements
(new File(path_base + di.getSignature().getName())).delete();
if (di != lastDelta) (new File(path_base + di.getOut().getName())).delete();
}
if (initialFile != null) {
if (initialFile.startsWith(path_base)) (new File(initialFile)).delete();
}
flashFilename = path_base + lastDelta.getOut().getName();
}