1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-06-26 07:03:20 +00:00

Fixes crash when a file is deleted then redownloaded

This commit is contained in:
Ethan Budd 2020-06-18 22:43:06 -05:00
parent 5cfd8bbb56
commit c796e2ae3c

View File

@ -315,6 +315,7 @@ public class StoredFileHelper implements Serializable {
return false;
if (this.isInvalid() || storage.isInvalid()) {
if (this.srcName == null || storage.srcName == null || this.srcType == null || storage.srcType == null) return false;
return this.srcName.equalsIgnoreCase(storage.srcName) && this.srcType.equalsIgnoreCase(storage.srcType);
}