Skip to content

Commit

Permalink
Fix crashing test
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed May 2, 2017
1 parent f522756 commit 48b55a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/qgsexpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2907,7 +2907,9 @@ static QVariant fcnOrderParts( const QVariantList &values, const QgsExpressionCo
return values.at( 0 );

QString expString = getStringValue( values.at( 1 ), parent );
QVariant cachedExpression = ctx->cachedValue( expString );
QVariant cachedExpression;
if ( ctx )
cachedExpression = ctx->cachedValue( expString );
QgsExpression expression;

if ( cachedExpression.isValid() )
Expand Down

0 comments on commit 48b55a7

Please sign in to comment.