mirror of https://github.com/CGAL/cgal
Fix in the testcase. Forgot to test if the range is empty, before dereferencing the iterator
This commit is contained in:
parent
addad6c953
commit
cc76597a3e
|
|
@ -182,7 +182,9 @@ _test_cls_point_iterator( Triangulation &T )
|
|||
assert( n == 0 );
|
||||
|
||||
Points range = T.points();
|
||||
p = *(range.first);
|
||||
if(! range.empty()){
|
||||
p = *(range.first);
|
||||
}
|
||||
return np;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue