AlbumCoverChoiceController: Check for nullptr in SearchForCover

This commit is contained in:
Jonas Kvinge 2023-04-23 19:27:01 +02:00
parent 5fd0a0831f
commit 69658f2022
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ QUrl AlbumCoverChoiceController::SearchForCover(Song *song) {
// Get something sensible to stick in the search box
AlbumCoverImageResultPtr result = SearchForImage(song);
if (result->is_valid()) {
if (result && result->is_valid()) {
return SaveCoverAutomatic(song, result);
}
else {