Skip to content

Commit

Permalink
Fix coverity dereference warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 2, 2016
1 parent 0ed7f3c commit c672ce2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/qgsaggregatecalculator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ QVariant QgsAggregateCalculator::calculate( QgsAggregateCalculator::Aggregate ag
return QVariant();
}

context->setFeature( f );
if ( context )
context->setFeature( f );
QVariant v = expression->evaluate( context );
resultType = v.type();
}
Expand Down

0 comments on commit c672ce2

Please sign in to comment.