Check for null genre values.

This commit is contained in:
Damiano Galassi committed 2016-04-01 08:27:04 +02:00
1 parent 15a0509306
commit a5d17a8f9f
1 file changed
+5 -2
+5 -2
View File
@@ -762,8 +762,11 @@ static const genreType_t genreType_strings[] = {
forKey:@"Genre"];
if (tags->genreType && !tags->genre) {
[tagsDict setObject:[self genreFromIndex:*tags->genreType]
forKey:@"Genre"];
NSString *genre = [self genreFromIndex:*tags->genreType];
if (genre) {
[tagsDict setObject:genre
forKey:@"Genre"];
}
}
if (tags->releaseDate)