Merge pull request #3794 from budde25/download-same-file-crash

Fixes crash when a file is deleted then redownloaded
pull/4288/head
Stypox 2020-09-09 15:41:06 +02:00 zatwierdzone przez GitHub
commit 2215ce58a4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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);
}