if(pendingSearches_.at(i) && pendingSearches_.at(i)->searchIds.find(id) !=
pendingSearches_.at(i)->searchIds.end())
{
-
setError(Source::CONNECTION_FAILURE, http_.errorString());
emitRequestFinished(pendingSearches_.at(i), true, i);
break;
QString const& data,
int index)
{
+ if(data.isEmpty())
+ {
+ qDebug() << "Server returned no data";
+ setError(CONNECTION_FAILURE, "Server returned no data");
+ emitRequestFinished(searchData, true, index);
+ return;
+ }
+
if(data.indexOf("<b>Last ned vCard</b>") > 0)
{
addOnlyNumber(searchData, data, index);