Fix NPE if downloading full ZIP and no starting file present
This commit is contained in:
parent
73fcb1546d
commit
6f85fabce3
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue