From: guido Date: Fri, 4 Sep 1998 12:23:42 +0000 (+0000) Subject: all subscribes test for null pointer X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=911b0eab5c82a59f36d28df1c908558b43009e95;p=dealii-svn.git all subscribes test for null pointer git-svn-id: https://svn.dealii.org/trunk@562 0785d39b-7218-0410-832d-ea1e28bc413d --- 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(); } /**