1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 11:19:18 +01:00

Fix crash in Grooveshark.

Not sure how I end up with this null pointer, but better to always to this sanity check.
This commit is contained in:
Arnaud Bienner 2015-03-11 23:07:20 +01:00
parent 3bad88d01e
commit 5e45f59e2c

View File

@ -297,6 +297,7 @@ void GroovesharkService::SearchSongsFinished(QNetworkReply* reply) {
task_search_id_ = 0;
// Fill results list
if (!search_) return;
for (const Song& song : songs) {
QStandardItem* child = CreateSongItem(song);
search_->appendRow(child);