diff --git a/lib/model/source/album.dart b/lib/model/source/album.dart index eedeea81c..3808fe9d9 100644 --- a/lib/model/source/album.dart +++ b/lib/model/source/album.dart @@ -196,7 +196,7 @@ mixin AlbumMixin on SourceBase { final volumePath = dir.volumePath; String trimVolumePath(String? path) => path!.substring(dir.volumePath.length); - final otherAlbumsOnVolume = otherAlbumsOnDevice.where((path) => path!.startsWith(volumePath)).map(trimVolumePath).toSet(); + final otherAlbumsOnVolume = otherAlbumsOnDevice.where((path) => path.startsWith(volumePath)).map(trimVolumePath).toSet(); final uniqueNameInVolume = unique(trimVolumePath(dirPath), otherAlbumsOnVolume); final volume = androidFileUtils.getStorageVolume(dirPath)!; if (volume.isPrimary) {