[geos-commits] r3254 - trunk/src/operation/valid

svn_geos at osgeo.org svn_geos at osgeo.org
Tue Mar 1 12:53:10 EST 2011


Author: mloskot
Date: 2011-03-01 09:53:10 -0800 (Tue, 01 Mar 2011)
New Revision: 3254

Modified:
   trunk/src/operation/valid/IsValidOp.cpp
Log:
Check geometry against nullptr

Modified: trunk/src/operation/valid/IsValidOp.cpp
===================================================================
--- trunk/src/operation/valid/IsValidOp.cpp	2011-03-01 17:50:36 UTC (rev 3253)
+++ trunk/src/operation/valid/IsValidOp.cpp	2011-03-01 17:53:10 UTC (rev 3254)
@@ -124,8 +124,11 @@
 void
 IsValidOp::checkValid(const Geometry *g)
 {
-        assert( validErr == NULL );
+    assert( validErr == NULL );
 
+    if (0 == g)
+        return;
+
 	// empty geometries are always valid!
 	if (g->isEmpty()) return;
 



More information about the geos-commits mailing list