AlbumCoverChoiceController: Check for nullptr in SearchForCover
This commit is contained in:
@@ -334,7 +334,7 @@ QUrl AlbumCoverChoiceController::SearchForCover(Song *song) {
|
|||||||
|
|
||||||
// Get something sensible to stick in the search box
|
// Get something sensible to stick in the search box
|
||||||
AlbumCoverImageResultPtr result = SearchForImage(song);
|
AlbumCoverImageResultPtr result = SearchForImage(song);
|
||||||
if (result->is_valid()) {
|
if (result && result->is_valid()) {
|
||||||
return SaveCoverAutomatic(song, result);
|
return SaveCoverAutomatic(song, result);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user