QtApplicationManager: Fix crash when a target doesn't have a buildsystem

Fixes: QTCREATORBUG-31862
Change-Id: I4faf1ae64bf39108a66511a7bd217a108c6d7aa1
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Cristian Adam
2024-11-04 17:23:54 +01:00
parent dd98eed87d
commit 5bcbde9b23

View File

@@ -104,7 +104,7 @@ TargetInformation::TargetInformation(const Target *target)
{
if (!target)
return;
if (target->buildSystem()->isParsing())
if (target->buildSystem() && target->buildSystem()->isParsing())
return;
auto project = target->project();
if (!project)