Check if constraint is NULL.
This commit is contained in:
parent
82fbed2596
commit
225446ac99
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user