From 00e8190801bbf9de2ee6a6c65c48052ca6bc398f Mon Sep 17 00:00:00 2001 From: Tobias Hunger <tobias.hunger@digia.com> Date: Sat, 13 Oct 2012 22:24:58 +0200 Subject: [PATCH] Fix possible crash I introduced this when splitting up my patchset for review. Bad patch is 4a9130a0 Change-Id: I08729c75e0e9c5d8d345e4e0bb4dfa865fdedcaa Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> --- src/plugins/projectexplorer/kitmanager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/projectexplorer/kitmanager.cpp b/src/plugins/projectexplorer/kitmanager.cpp index bde8edb3462..a51770ea43c 100644 --- a/src/plugins/projectexplorer/kitmanager.cpp +++ b/src/plugins/projectexplorer/kitmanager.cpp @@ -359,6 +359,8 @@ QList<KitInformation *> KitManager::kitInformation() const Internal::KitManagerConfigWidget *KitManager::createConfigWidget(Kit *k) const { + if (!k) + return 0; Internal::KitManagerConfigWidget *result = new Internal::KitManagerConfigWidget(k); foreach (KitInformation *ki, d->m_informationList) result->addConfigWidget(ki->createConfigWidget(k)); -- GitLab