Permalink
Browse files

OGR-VFK: call CPLAssert when GetNextFeature() return NULL

git-svn-id: https://svn.osgeo.org/gdal/trunk@24919 f0d54148-0727-0410-94bb-9a71ac55c965
  • Loading branch information...
1 parent ffcd017 commit 49d6550e6defc0d10f25b493c0b8c87939dc50bf @landam landam committed Sep 11, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 gdal/ogr/ogrsf_frmts/vfk/vfkdatablocksqlite.cpp
@@ -61,7 +61,9 @@ int VFKDataBlockSQLite::LoadGeometryPoint()
ResetReading();
while(poReader->ExecuteSQL(hStmt) == OGRERR_NONE) {
- poFeature = (VFKFeatureSQLite *) GetNextFeature(); // assert
+ poFeature = (VFKFeatureSQLite *) GetNextFeature();
+ CPLAssert(NULL != poFeature);
+
x = -1.0 * sqlite3_column_double(hStmt, 0);
y = -1.0 * sqlite3_column_double(hStmt, 1);
OGRPoint pt(x, y);

0 comments on commit 49d6550

Please sign in to comment.