We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 5d2f0eb commit 27e451cCopy full SHA for 27e451c
src/core/qgsdistancearea.cpp
@@ -178,6 +178,9 @@ double QgsDistanceArea::measure( QgsGeometry* geometry )
178
return 0.0;
179
180
unsigned char* wkb = geometry->asWkb();
181
+ if ( !wkb )
182
+ return 0.0;
183
+
184
unsigned char* ptr;
185
unsigned int wkbType;
186
double res, resTotal = 0;
0 commit comments