Fix in the testcase. Forgot to test if the range is empty, before dereferencing the iterator

This commit is contained in:
Andreas Fabri 2019-06-11 12:02:27 +02:00
parent addad6c953
commit cc76597a3e
1 changed files with 3 additions and 1 deletions

View File

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