Skip to content

Commit 27e451c

Browse files
author
jef
committed
fix #2324
git-svn-id: http://svn.osgeo.org/qgis/trunk@13724 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 5d2f0eb commit 27e451c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/qgsdistancearea.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ double QgsDistanceArea::measure( QgsGeometry* geometry )
178178
return 0.0;
179179

180180
unsigned char* wkb = geometry->asWkb();
181+
if ( !wkb )
182+
return 0.0;
183+
181184
unsigned char* ptr;
182185
unsigned int wkbType;
183186
double res, resTotal = 0;

0 commit comments

Comments
 (0)