fixed null bug

This commit is contained in:
zzzzrrr 2009-08-05 11:30:09 -04:00
parent ae5cf98122
commit 850b809c7b

View File

@ -209,7 +209,7 @@ class CDT(val points: List[Point], val segments: List[Segment], iTriangle: Trian
triangles += firstTriangle
val e = edge.p - edge.q
while(!triangles.last.contains(edge.p))
while(triangles.last != null && !triangles.last.contains(edge.p))
triangles += triangles.last.findNeighbor(e)
// TODO: Implement this section