forked from qt-creator/qt-creator
Fix possible crash when checking sysroot
Change-Id: I556ef0db09ceedd32e005b7057c56629d6fda5ec Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user