forked from qt-creator/qt-creator
Fixed possible crash when trying to link invalid documents.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user