Check if constraint is NULL.

This commit is contained in:
czeidler 2012-09-01 16:30:19 +12:00
parent 82fbed2596
commit 225446ac99

View File

@ -288,6 +288,8 @@ bool
LinearSpec::RemoveConstraint(Constraint* constraint, bool deleteConstraint,
bool notifyListener)
{
if (constraint == NULL)
return false;
fSolver->ConstraintRemoved(constraint);
if (!fConstraints.RemoveItem(constraint))
return false;