Skip to content
Permalink
Browse files
Followup febe30, fix crash
  • Loading branch information
nyalldawson committed May 2, 2016
1 parent febe30d commit 563d75c
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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.