Fix NullPointerException when checking if storage exists
This commit is contained in:
parent
9ea0a5f1f8
commit
12e6ef4bce
2 changed files with 2 additions and 2 deletions
|
|
@ -664,7 +664,7 @@ public class DownloadMission extends Mission {
|
|||
* @return {@code true}, if storage is invalid and cannot be used
|
||||
*/
|
||||
public boolean hasInvalidStorage() {
|
||||
return errCode == ERROR_PROGRESS_LOST || storage == null || storage.isInvalid() || !storage.existsAsFile();
|
||||
return errCode == ERROR_PROGRESS_LOST || storage == null || !storage.existsAsFile();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue