From fce2056abfcffb1302c51a7fb12c42e23d4b3cb9 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 20 Nov 2012 09:58:15 +0100 Subject: [PATCH] fixed: make sure we do not dereference null ptrs --- dune/elasticity/asmhandler_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }