Skip to content

Commit 48b55a7

Browse files
committedMay 2, 2017
Fix crashing test
1 parent f522756 commit 48b55a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/core/qgsexpression.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2907,7 +2907,9 @@ static QVariant fcnOrderParts( const QVariantList &values, const QgsExpressionCo
29072907
return values.at( 0 );
29082908

29092909
QString expString = getStringValue( values.at( 1 ), parent );
2910-
QVariant cachedExpression = ctx->cachedValue( expString );
2910+
QVariant cachedExpression;
2911+
if ( ctx )
2912+
cachedExpression = ctx->cachedValue( expString );
29112913
QgsExpression expression;
29122914

29132915
if ( cachedExpression.isValid() )

0 commit comments

Comments
 (0)
Please sign in to comment.