Skip to content

Commit

Permalink
Fix #9501 (expression crash when $geometry is used without a feature)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Feb 8, 2014
1 parent a0fc024 commit 18fd401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsexpression.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 18fd401

Please sign in to comment.