Commit 04db8e3a authored by Christian Stenger's avatar Christian Stenger Committed by Tobias Hunger

ProjectExplorer: Avoid possible nullptr access

Change-Id: I1a1ce6a8eb958aaedbce215d4be9cbbde92699ce
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
parent 366ada9f
......@@ -115,7 +115,7 @@ QVariant FlatModel::data(const QModelIndex &index, int role) const
Project *project = Utils::findOrDefault(SessionManager::projects(), [this, wn](const Project *p) {
return nodeForProject(p) == wn;
});
if (project->isParsing())
if (project && project->isParsing())
result = emptyIcon;
else
result = containerNode->rootProjectNode() ? containerNode->rootProjectNode()->icon() :
......
Markdown is supported
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