From 5ce946bb5bd0784abbee3257b6328e872753ac67 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 2 Sep 2025 19:21:41 -0500 Subject: [PATCH] fix: null check (#21536) --- mobile/lib/domain/services/local_sync.service.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/lib/domain/services/local_sync.service.dart b/mobile/lib/domain/services/local_sync.service.dart index b136b11bab..5ab10bdf09 100644 --- a/mobile/lib/domain/services/local_sync.service.dart +++ b/mobile/lib/domain/services/local_sync.service.dart @@ -286,7 +286,7 @@ extension on Iterable { (e) => LocalAlbum( id: e.id, name: e.name, - updatedAt: tryFromSecondsSinceEpoch(e.updatedAt!) ?? DateTime.now(), + updatedAt: tryFromSecondsSinceEpoch(e.updatedAt) ?? DateTime.now(), assetCount: e.assetCount, ), ).toList(); @@ -301,8 +301,8 @@ extension on Iterable { name: e.name, checksum: null, type: AssetType.values.elementAtOrNull(e.type) ?? AssetType.other, - createdAt: tryFromSecondsSinceEpoch(e.createdAt!) ?? DateTime.now(), - updatedAt: tryFromSecondsSinceEpoch(e.updatedAt!) ?? DateTime.now(), + createdAt: tryFromSecondsSinceEpoch(e.createdAt) ?? DateTime.now(), + updatedAt: tryFromSecondsSinceEpoch(e.updatedAt) ?? DateTime.now(), width: e.width, height: e.height, durationInSeconds: e.durationInSeconds,