mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	fix(mobile): fix null check operator on null value (#2204)
This commit is contained in:
		| @@ -447,7 +447,7 @@ class SyncService { | |||||||
|     deleteCandidates.addAll(toDelete); |     deleteCandidates.addAll(toDelete); | ||||||
|     existing.addAll(result.first); |     existing.addAll(result.first); | ||||||
|     album.name = ape.name; |     album.name = ape.name; | ||||||
|     album.modifiedAt = ape.lastModified!; |     album.modifiedAt = ape.lastModified ?? DateTime.now(); | ||||||
|     if (album.thumbnail.value != null && |     if (album.thumbnail.value != null && | ||||||
|         toDelete.contains(album.thumbnail.value)) { |         toDelete.contains(album.thumbnail.value)) { | ||||||
|       album.thumbnail.value = null; |       album.thumbnail.value = null; | ||||||
| @@ -491,7 +491,7 @@ class SyncService { | |||||||
|     if (totalOnDevice != album.assets.length + newAssets.length) { |     if (totalOnDevice != album.assets.length + newAssets.length) { | ||||||
|       return false; |       return false; | ||||||
|     } |     } | ||||||
|     album.modifiedAt = ape.lastModified!.toUtc(); |     album.modifiedAt = ape.lastModified?.toUtc() ?? DateTime.now().toUtc(); | ||||||
|     final result = await _linkWithExistingFromDb(newAssets); |     final result = await _linkWithExistingFromDb(newAssets); | ||||||
|     try { |     try { | ||||||
|       await _db.writeTxn(() async { |       await _db.writeTxn(() async { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user