Commit 8a29109f authored by Christian Stenger's avatar Christian Stenger Committed by hjk
Browse files

ProjectExplorer: Fix possible accessing null pointer

Change-Id: I285437f8eb21ce9f1a32d631a9c75d32d5ab2859
Reviewed-by: default avatarhjk <>
parent 960b5b3b
......@@ -166,6 +166,8 @@ KitManagerConfigWidget *KitModel::widget(const QModelIndex &index)
if (!index.isValid())
return 0;
KitNode *node = static_cast<KitNode *>(index.internalPointer());
if (node == m_autoRoot || node == m_manualRoot)
return 0;
return node->widget;
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