diff --git a/dune/common/shared_ptr.hh b/dune/common/shared_ptr.hh
index 34bd9a11fba7f0e414a41d5cf987a2f3a006f3de..2435dcc65b98ce2f41fb3166f1c7fffddaa5e72b 100644
--- a/dune/common/shared_ptr.hh
+++ b/dune/common/shared_ptr.hh
@@ -147,7 +147,7 @@ namespace Dune
   template<class T>
   inline shared_ptr<T>::shared_ptr()
   {
-    rep_ = null_ptr;
+    rep_ = nullptr;
   }
 
   template<class T>