Commit aba2844a authored by Christian Stenger's avatar Christian Stenger
Browse files

Fix possible null-pointer access

Change-Id: I609828b4656c00c1c358759f0c844ecb23157b8b
Reviewed-by: default avatarDavid Schulz <>
parent 690f15c1
......@@ -620,6 +620,8 @@ void TestTreeModel::qmlFilesAndFunctionNamesForMainFile(const QString &mainFile,
QList<QString> *functionNames) const
TestTreeItem *unnamed = unnamedQuickTests();
if (!unnamed)
for (int i = 0; i < unnamed->childCount(); ++i) {
const TestTreeItem *child = unnamed->child(i);
if (child->mainFile() == mainFile) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment