From ffdc572a403279ccba3dd3026c0bbca7ba2c0a28 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Fri, 4 Sep 1998 12:23:42 +0000 Subject: [PATCH] all subscribes test for null pointer git-svn-id: https://svn.dealii.org/trunk@562 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/smartpointer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deal.II/base/include/base/smartpointer.h b/deal.II/base/include/base/smartpointer.h index 53c9630cdf..15eb84f81c 100644 --- a/deal.II/base/include/base/smartpointer.h +++ b/deal.II/base/include/base/smartpointer.h @@ -44,7 +44,8 @@ class SmartPointer SmartPointer(T* tt) : t(tt) { - t->subscribe(); + if (t) + t->subscribe(); } /** -- 2.39.5