Skip to content
Permalink
Browse files

Followup febe30, fix crash

  • Loading branch information
nyalldawson committed May 2, 2016
1 parent febe30d commit 563d75c1ec9e7bc157ccad18a5919d308e6bfb94
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsexpression.cpp
@@ -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 );

0 comments on commit 563d75c

Please sign in to comment.
You can’t perform that action at this time.