File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ bool QgsMemoryFeatureIterator::nextFeatureUsingList( QgsFeature& feature )
86
86
if ( mRequest .filterType () == QgsFeatureRequest::FilterRect && mRequest .flags () & QgsFeatureRequest::ExactIntersect )
87
87
{
88
88
// do exact check in case we're doing intersection
89
- if ( P->mFeatures [*mFeatureIdListIterator ].geometry ()->intersects ( mSelectRectGeom ) )
89
+ if ( P->mFeatures [*mFeatureIdListIterator ].geometry () && P-> mFeatures [* mFeatureIdListIterator ]. geometry () ->intersects ( mSelectRectGeom ) )
90
90
hasFeature = true ;
91
91
}
92
92
else
@@ -131,13 +131,13 @@ bool QgsMemoryFeatureIterator::nextFeatureTraverseAll( QgsFeature& feature )
131
131
if ( mRequest .flags () & QgsFeatureRequest::ExactIntersect )
132
132
{
133
133
// using exact test when checking for intersection
134
- if ( mSelectIterator ->geometry ()->intersects ( mSelectRectGeom ) )
134
+ if ( mSelectIterator ->geometry () && mSelectIterator -> geometry () ->intersects ( mSelectRectGeom ) )
135
135
hasFeature = true ;
136
136
}
137
137
else
138
138
{
139
139
// check just bounding box against rect when not using intersection
140
- if ( mSelectIterator ->geometry ()->boundingBox ().intersects ( mRequest .filterRect () ) )
140
+ if ( mSelectIterator ->geometry () && mSelectIterator -> geometry () ->boundingBox ().intersects ( mRequest .filterRect () ) )
141
141
hasFeature = true ;
142
142
}
143
143
}
You can’t perform that action at this time.
0 commit comments