Add null check
This commit is contained in:
parent
b92023ad5c
commit
304ec1806c
1 changed files with 2 additions and 1 deletions
|
@ -50,7 +50,8 @@ class DiffFetcher {
|
|||
file.updationTime = item["updationTime"];
|
||||
final existingFile = await FilesDB.instance
|
||||
.getUploadedFile(file.uploadedFileID, file.collectionID);
|
||||
if (existingFile.updationTime == file.updationTime) {
|
||||
if (existingFile != null &&
|
||||
existingFile.updationTime == file.updationTime) {
|
||||
continue;
|
||||
}
|
||||
file.ownerID = item["ownerID"];
|
||||
|
|
Loading…
Add table
Reference in a new issue