fixed: check pointer before dereferencing

git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@788 e10b68d5-8a6e-419e-a041-bce267b0401d
This commit is contained in:
akva 2011-02-09 12:46:02 +00:00 committed by Knut Morten Okstad
parent 940d949764
commit 14de64c896

View File

@ -923,7 +923,7 @@ bool SIMbase::writeGlvS (const Vector& psol,
bool haveAsol = false;
bool scalarEq = myModel.empty() ? false : myModel.front()->getNoFields() == 1;
if (scalarEq) {
if (this->getAnaSol()->hasScalarSol())
if (getAnaSol() && this->getAnaSol()->hasScalarSol())
haveAsol = true;
}
else