Avoid a null pointer. Not really sure what causes it, combination of charge balance, pe constraint, alkalinity, and C(4).

git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@10432 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
David L Parkhurst 2015-10-26 20:05:47 +00:00
parent bef66de3c3
commit 2fe6313f47

View File

@ -2398,6 +2398,11 @@ mb_for_species_aq(int n)
{
continue;
}
else if (master_ptr->unknown == NULL)
{
//std::cerr << "NULL: " << master_ptr->s->name << std::endl;
continue;
}
else if (master_ptr->unknown->type == SOLUTION_PHASE_BOUNDARY)
{
continue;