mirror of https://github.com/CGAL/cgal
Fixed a crash when calling type() on an uninitialized Object
This commit is contained in:
parent
53ac85278f
commit
c935a9dbc1
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue