Skip to content
Permalink
Browse files
Fix #9501 (expression crash when $geometry is used without a feature)
  • Loading branch information
wonder-sk committed Feb 8, 2014
1 parent a0fc024 commit 18fd4011677fc4c64e3543d20d7e0bb451bb285a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsexpression.cpp
@@ -976,7 +976,7 @@ static QVariant fcnYat( const QVariantList& values, const QgsFeature* f, QgsExpr
}
static QVariant fcnGeometry( const QVariantList& , const QgsFeature* f, QgsExpression* )
{
QgsGeometry* geom = f->geometry();
QgsGeometry* geom = f ? f->geometry() : 0;
if ( geom )
return QVariant::fromValue( *geom );
else

0 comments on commit 18fd401

Please sign in to comment.