Skip to content
Permalink
Browse files

[virtual] Protect RTree filter in case of null geometry

(cherry picked from commit e8ec44d)
  • Loading branch information
Hugo Mercier authored and nyalldawson committed Apr 3, 2020
1 parent b12810d commit deac6f5d8437a5dd7a78e6d030ed474452c00b4b
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/providers/virtual/qgsvirtuallayersqlitemodule.cpp
@@ -597,9 +597,12 @@ int vtableFilter( sqlite3_vtab_cursor *cursor, int idxNum, const char *idxStr, i
{
// rtree filter
const char *blob = reinterpret_cast< const char * >( sqlite3_value_blob( argv[0] ) );
int bytes = sqlite3_value_bytes( argv[0] );
QgsRectangle r( spatialiteBlobBbox( blob, bytes ) );
request.setFilterRect( r );
if ( blob )
{
int bytes = sqlite3_value_bytes( argv[0] );
QgsRectangle r( spatialiteBlobBbox( blob, bytes ) );
request.setFilterRect( r );
}
}
else if ( idxNum == 3 )
{

0 comments on commit deac6f5

Please sign in to comment.
You can’t perform that action at this time.