Fix segfault if when statement's RHS is unitialized.

If it is ever assigned a value, the body of the when can be triggered as
usual.

Addresses BIT-1176.
This commit is contained in:
Jon Siwek 2014-10-30 12:19:25 -05:00
parent 432744fde4
commit 1f7facda5b
3 changed files with 71 additions and 1 deletions

View file

@ -206,7 +206,7 @@ bool Trigger::Eval()
return false;
}
if ( v->IsZero() )
if ( ! v || v->IsZero() )
{
// Not true. Perhaps next time...
DBG_LOG(DBG_NOTIFIERS, "%s: trigger condition is false", Name());