π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
extra guard for null check
laurenspriema5f2143dd19c
diff --git a/mobile/apps/photos/lib/utils/exif_util.dart b/mobile/apps/photos/lib/utils/exif_util.dartindex 114e0f482f..9f1e700d52 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