Skip to content

Commit c672ce2

Browse files
committedJun 2, 2016
Fix coverity dereference warning
1 parent 0ed7f3c commit c672ce2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/core/qgsaggregatecalculator.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ QVariant QgsAggregateCalculator::calculate( QgsAggregateCalculator::Aggregate ag
106106
return QVariant();
107107
}
108108

109-
context->setFeature( f );
109+
if ( context )
110+
context->setFeature( f );
110111
QVariant v = expression->evaluate( context );
111112
resultType = v.type();
112113
}

0 commit comments

Comments
 (0)