Fix dereference after null in Triangulation_data_structure.h

This commit is contained in:
Giles Bathgate 2021-04-28 17:53:41 +01:00
parent 9e1a4e7037
commit f02f5d07d1
1 changed files with 1 additions and 1 deletions

View File

@ -1924,7 +1924,7 @@ create_star_2(Vertex_handle v, Cell_handle c, int li )
// pnew is null at the first iteration
v1->set_cell(cnew);
//pnew->set_neighbor( cw(pnew->index(v1)), cnew );
if (pnew != Cell_handle()) { pnew->set_neighbor( 1, cnew );}
if (pnew != nullptr) { pnew->set_neighbor( 1, cnew );}
bound = cur;
i1 = ccw(i1);