diff --git a/STL_Extension/include/CGAL/Object.h b/STL_Extension/include/CGAL/Object.h index dd88a8f577f..6cbf9de49d1 100644 --- a/STL_Extension/include/CGAL/Object.h +++ b/STL_Extension/include/CGAL/Object.h @@ -126,7 +126,10 @@ class Object const std::type_info & type() const { - return obj->type(); + if(obj) + return obj->type(); + else + return typeid(void); } #ifndef CGAL_NO_DEPRECATED_CODE