[geos-commits] r2646 - trunk/tests/xmltester
svn_geos at osgeo.org
svn_geos at osgeo.org
Thu Oct 1 04:42:40 EDT 2009
Author: strk
Date: 2009-10-01 04:42:40 -0400 (Thu, 01 Oct 2009)
New Revision: 2646
Modified:
trunk/tests/xmltester/XMLTester.cpp
Log:
Don't segfault on xml tests missing precision model specification
Modified: trunk/tests/xmltester/XMLTester.cpp
===================================================================
--- trunk/tests/xmltester/XMLTester.cpp 2009-10-01 07:24:19 UTC (rev 2645)
+++ trunk/tests/xmltester/XMLTester.cpp 2009-10-01 08:42:40 UTC (rev 2646)
@@ -513,6 +513,9 @@
geom::Geometry *
XMLTester::parseGeometry(const std::string &in, const char* label)
{
+ if ( ( ! wkbreader.get() ) || ( ! wktreader.get() ) )
+ throw(runtime_error("No precision model specified"));
+
std::stringstream is(in, std::ios_base::in);
char first_char;
More information about the geos-commits
mailing list