fixed: make sure we do not dereference null ptrs

This commit is contained in:
Arne Morten Kvarving 2012-11-20 09:58:15 +01:00
parent c02d4ffeb8
commit fce2056abf

View File

@ -70,7 +70,7 @@ void ASMHandler<GridType>::addDOF(int row, int erow,
}
}
}
if (S)
if (S && b)
(*b)[row] += scale*(*S)[erow];
}