Fixes crash when a file is deleted then redownloaded
This commit is contained in:
parent
5cfd8bbb56
commit
c796e2ae3c
1 changed files with 1 additions and 0 deletions
|
@ -315,6 +315,7 @@ public class StoredFileHelper implements Serializable {
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (this.isInvalid() || storage.isInvalid()) {
|
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);
|
return this.srcName.equalsIgnoreCase(storage.srcName) && this.srcType.equalsIgnoreCase(storage.srcType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue