We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68c887f commit e88bfb7Copy full SHA for e88bfb7
copasi/parameterFitting/CFitProblem.cpp
@@ -710,7 +710,8 @@ bool CFitProblem::initialize()
710
for (i = 0, imax = mpExperimentSet->getExperimentCount(); i < imax; i++)
711
{
712
mExperimentConstraints(i, j) = pConstraint;
713
- ObjectSet[i].insert(pConstraint->getObject());
+ if (pConstraint->getObject())
714
+ ObjectSet[i].insert(pConstraint->getObject());
715
}
716
717
else
@@ -721,7 +722,8 @@ bool CFitProblem::initialize()
721
722
return false;
723
724
mExperimentConstraints(Index, j) = pConstraint;
- ObjectSet[Index].insert(pConstraint->getObject());
725
726
+ ObjectSet[Index].insert(pConstraint->getObject());
727
};
728
729
0 commit comments