Check if id is nullptr

This commit is contained in:
Antonio Andelic 2023-10-18 07:26:32 +00:00
parent 3864c6746e
commit fc24e599fd

View File

@ -36,8 +36,9 @@ String ASTPartition::getID(char delim) const
{
if (value)
return "Partition";
else
return "Partition_ID" + (delim + id->getID());
std::string id_string = id ? id->getID() : "";
return "Partition_ID" + (delim + id_string);
}
ASTPtr ASTPartition::clone() const