fix(server): handle invalid directory item (#12534)

This commit is contained in:
Jason Rasmussen
2024-09-09 23:54:24 -04:00
committed by GitHub
parent 2c639d7fe4
commit 3127636c42
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -428,7 +428,7 @@ export class MetadataService {
if (isMotionPhoto && directory) {
for (const entry of directory) {
if (entry.Item.Semantic == 'MotionPhoto') {
if (entry?.Item?.Semantic == 'MotionPhoto') {
length = entry.Item.Length ?? 0;
padding = entry.Item.Padding ?? 0;
break;