diff --git a/src/reader.cpp b/src/reader.cpp index 7422991f7..45e2d5108 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -772,6 +772,9 @@ bool Reader::searchSuggestionsSmart(const string& prefix, for (auto current = suggestionSearch->begin(); current != suggestionSearch->end(); current++) { + if (!current->good()) { + continue; + } std::vector suggestion; suggestion.push_back(current->getTitle()); suggestion.push_back("/A/" + current->getUrl());