Commit 47a79e22 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Fix possible crash when checking sysroot



Change-Id: I556ef0db09ceedd32e005b7057c56629d6fda5ec
Reviewed-by: default avatarThiago Macieira <thiago.macieira@intel.com>
parent 8d81f98c
......@@ -102,7 +102,9 @@ ProfileInformation::ItemList SysRootProfileInformation::toUserOutput(Profile *p)
bool SysRootProfileInformation::hasSysRoot(const Profile *p)
{
return !p->value(Core::Id(SYSROOT_INFORMATION)).toString().isEmpty();
if (p)
return !p->value(Core::Id(SYSROOT_INFORMATION)).toString().isEmpty();
return false;
}
Utils::FileName SysRootProfileInformation::sysRoot(const Profile *p)
......
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