Check for valid identifier in WhenStmt::Describe

This commit is contained in:
Tim Wojtulewicz 2024-04-10 16:10:26 -07:00
parent da7457340c
commit 9abf8ea8b7
3 changed files with 23 additions and 1 deletions

View file

@ -2029,7 +2029,10 @@ void WhenStmt::StmtDescribe(ODesc* d) const {
if ( c.IsDeepCopy() )
d->Add("copy ");
d->Add(c.Id()->Name());
if ( c.Id() )
d->Add(c.Id()->Name());
else
d->Add("<error>");
}
d->Add("]");
}