Commit 4b9a6b8a authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

ProjectExplorer: Validate pointer *before* accessing it

Change-Id: I8a202aaa6961d2cc2691b13be2b76f4b7511dc0b
Reviewed-by: default avatarTobias Hunger <>
parent fb206c14
......@@ -494,10 +494,12 @@ void KitManager::notifyAboutUpdate(ProjectExplorer::Kit *k)
bool KitManager::registerKit(ProjectExplorer::Kit *k)
QTC_ASSERT(isLoaded(), return false);
QTC_ASSERT(k->id().isValid(), return false);
if (!k)
return true;
QTC_ASSERT(k->id().isValid(), return false);
foreach (Kit *current, kits()) {
if (k == current)
return false;
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