Skip to content

Commit

Permalink
Followup febe30, fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 2, 2016
1 parent febe30d commit 563d75c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsexpression.cpp
Expand Up @@ -4288,7 +4288,7 @@ QVariant QgsExpression::NodeColumnRef::eval( QgsExpression *parent, const QgsExp
if ( index < 0 )
{
// have not yet found field index - first check explicitly set fields collection
if ( context->hasVariable( QgsExpressionContext::EXPR_FIELDS ) )
if ( context && context->hasVariable( QgsExpressionContext::EXPR_FIELDS ) )
{
QgsFields fields = qvariant_cast<QgsFields>( context->variable( QgsExpressionContext::EXPR_FIELDS ) );
index = fields.fieldNameIndex( mName );
Expand Down

0 comments on commit 563d75c

Please sign in to comment.