ProjectExplorer: Fix possible accessing null pointer

Change-Id: I285437f8eb21ce9f1a32d631a9c75d32d5ab2859
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Christian Stenger
2015-01-13 08:24:47 +01:00
committed by hjk
parent 960b5b3bfa
commit 8a29109fe9

View File

@@ -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;
}