Add null check

This commit is contained in:
Neeraj Gupta 2023-04-17 13:19:46 +05:30
parent 79369a2afd
commit 569905632a
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -305,6 +305,11 @@ class FileUploader {
debugPrint("File is already uploaded ${fileOnDisk.tag}");
return fileOnDisk;
}
if ((file.localID ?? '') == '') {
_logger.severe('Trying to upload file with missing localID');
return file;
}
final String lockKey = file.localID!;
try {