Don't crash looking for delay_type of empty task.

It is legal for a task to have no definition. In that case, the
delay_type calculations (used to detect infinite loops) can assume
that an empty definition is a no-op and return NO_DELAY.
This commit is contained in:
Stephen Williams 2008-08-27 18:42:05 -07:00
parent 0121c41942
commit 3ed0c4e809
1 changed files with 1 additions and 0 deletions

View File

@ -2649,6 +2649,7 @@ DelayType NetRepeat::delay_type() const
DelayType NetTaskDef::delay_type() const
{
if (proc_ == 0) return NO_DELAY;
return proc_->delay_type();
}