Fixed a crash when calling type() on an uninitialized Object

This commit is contained in:
Philipp Möller 2011-11-15 15:05:20 +00:00
parent 53ac85278f
commit c935a9dbc1
1 changed files with 4 additions and 1 deletions

View File

@ -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