[geos-commits] r2626 - trunk/source/geom
svn_geos at osgeo.org
svn_geos at osgeo.org
Mon Sep 21 15:47:35 EDT 2009
Author: pramsey
Date: 2009-09-21 15:47:31 -0400 (Mon, 21 Sep 2009)
New Revision: 2626
Modified:
trunk/source/geom/Polygon.cpp
Log:
Polygon with empty ring causes a crash in WKBReader (from Tamas Szekeres) (#290)
Modified: trunk/source/geom/Polygon.cpp
===================================================================
--- trunk/source/geom/Polygon.cpp 2009-09-16 23:17:31 UTC (rev 2625)
+++ trunk/source/geom/Polygon.cpp 2009-09-21 19:47:31 UTC (rev 2626)
@@ -74,7 +74,7 @@
}
else
{
- if (newShell->isEmpty() && hasNonEmptyElements(newHoles)) {
+ if (newHoles != NULL && newShell->isEmpty() && hasNonEmptyElements(newHoles)) {
delete newShell;
delete newHoles;
throw util::IllegalArgumentException("shell is empty but holes are not");
More information about the geos-commits
mailing list