Skip to content

Commit

Permalink
Add safety check to avoid crash
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 1, 2016
1 parent 4a7a8ff commit 9c11814
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsexpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3826,6 +3826,9 @@ QStringList QgsExpression::referencedColumns() const

QSet<int> QgsExpression::referencedAttributeIndexes( const QgsFields& fields ) const
{
if ( !d->mRootNode )
return QSet<int>();

QStringList referencedFields = d->mRootNode->referencedColumns();
QSet<int> referencedIndexes;

Expand Down

0 comments on commit 9c11814

Please sign in to comment.