diff --git a/dune/elasticity/asmhandler_impl.hpp b/dune/elasticity/asmhandler_impl.hpp index 8a4dbbe..73b5e16 100644 --- a/dune/elasticity/asmhandler_impl.hpp +++ b/dune/elasticity/asmhandler_impl.hpp @@ -70,7 +70,7 @@ void ASMHandler::addDOF(int row, int erow, } } } - if (S) + if (S && b) (*b)[row] += scale*(*S)[erow]; }