diff --git a/app/lib/entity/album/cover_provider.dart b/app/lib/entity/album/cover_provider.dart index 20a718df..1703ac65 100644 --- a/app/lib/entity/album/cover_provider.dart +++ b/app/lib/entity/album/cover_provider.dart @@ -80,7 +80,8 @@ class AlbumAutoCoverProvider extends AlbumCoverProvider { .map((e) => e.file) .where((element) => file_util.isSupportedFormat(element) && - (element.hasPreview ?? false)) + (element.hasPreview ?? false) && + element.fileId != null) .sorted(compareFileDateTimeDescending) .firstOrNull; }