π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Fix EXIF date type errors
Neeraj Gupta2c6411881101
diff --git a/mobile/apps/photos/lib/utils/exif_util.dart b/mobile/apps/photos/lib/utils/exif_util.dartindex f66f4f24aa..656d8027a2 100644--- a/mobile/apps/photos/lib/utils/exif_util.dart+++ b/mobile/apps/photos/lib/utils/exif_util.dart@@ -107,7 +107,9 @@ Future<ParsedExifDateTime?> tryParseExifDateTime(Map<String, IfdTag>? exifData,) async {try {- assert(file != null || exifData != null);+ if (file == null && exifData == null) {+ return null;+ }final exif = exifData ?? await readExifAsync(file!);final exifTime = exif.containsKey(kDateTimeOriginal)? exif[kDateTimeOriginal]!.printable