Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Log null sharing

laurenspriem1c8acff1b938
diff --git a/mobile/apps/photos/lib/utils/file_util.dart b/mobile/apps/photos/lib/utils/file_util.dart
index 42b40120aa..4c5b6a81c7 100644
--- a/mobile/apps/photos/lib/utils/file_util.dart
+++ b/mobile/apps/photos/lib/utils/file_util.dart
@@ -86,6 +86,11 @@ Future<File?> _getLocalDiskFile(
} else {
return file.getAsset.then((asset) async {
if (asset == null || !(await asset.exists)) {
+ if (isOrigin && file.isVideo) {
+ _logger.warning(
+ "Failed to get file for assetID: ${file.localID}, is asset null: ${asset == null}",
+ );
+ }
return null;
}
return isOrigin ? asset.originFile : asset.file;