Fixed possible crash when trying to link invalid documents.

This commit is contained in:
Roberto Raggi
2010-02-10 16:23:04 +01:00
parent 5d0f65fc91
commit 56df4e29ce

View File

@@ -258,6 +258,9 @@ QList<Document::Ptr> Link::reachableDocuments(Document::Ptr startDoc, const Snap
{
QList<Document::Ptr> docs;
if (! startDoc)
return docs;
QSet<QString> processed;
QStringList todo;