Skip to content

Commit

Permalink
Merge pull request TeamNewPipe#3794 from budde25/download-same-file-c…
Browse files Browse the repository at this point in the history
…rash

Fixes crash when a file is deleted then redownloaded
  • Loading branch information
Stypox authored and ShareASmile committed Aug 16, 2021
1 parent 29beab8 commit 0797e38
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ public boolean equals(StoredFileHelper storage) {
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);
}

Expand Down

0 comments on commit 0797e38

Please sign in to comment.