From 911b0eab5c82a59f36d28df1c908558b43009e95 Mon Sep 17 00:00:00 2001 From: guido 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