From 2ea5e6b8e1aece6699e050512a38def6d7c66bfe Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 9 Apr 2015 23:57:00 +0200 Subject: [PATCH] Fixed Pipeline. --- src/libtomahawk/Pipeline.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/libtomahawk/Pipeline.cpp b/src/libtomahawk/Pipeline.cpp index 8f2f0952f..cfb07eb67 100644 --- a/src/libtomahawk/Pipeline.cpp +++ b/src/libtomahawk/Pipeline.cpp @@ -337,17 +337,13 @@ Pipeline::reportResults( QID qid, const QList< result_ptr >& results ) return; if ( !d->qids.contains( qid ) ) { - if ( !results.isEmpty() ) + if ( results.length() > 0 && !results[0]->resolvedBy().isNull() ) { - ResultProvider* resolvedBy = results[0]->resolvedBy(); - if ( resolvedBy ) - { - tDebug() << "Result arrived too late for:" << qid << "by" << resolvedBy->name(); - } - else - { - tDebug() << "Result arrived too late for:" << qid; - } + tDebug() << "Result arrived too late for:" << qid << "by" << results[0]->resolvedBy()->name(); + } + else + { + tDebug() << "Result arrived too late for:" << qid; } return; }