Skip to content

Commit

Permalink
Fixes crashes when localizedTitle is nil for album
Browse files Browse the repository at this point in the history
  • Loading branch information
sithwarrior committed Jul 28, 2020
1 parent e0bd861 commit 9922016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ios/GMImagePicker/GMAlbumsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ -(void)updateFetchResults

PHFetchResult *assetsFetchResult = [PHAsset fetchAssetsInAssetCollection:assetCollection options:options];
[userFetchResultArray addObject:assetsFetchResult];
[userFetchResultLabel addObject:collection.localizedTitle];
[userFetchResultLabel addObject:collection.localizedTitle ?: @""];
}
}

Expand Down

0 comments on commit 9922016

Please sign in to comment.