Skip to content

Commit

Permalink
Merge pull request #6930 from m-kuhn/fixSearchCrash
Browse files Browse the repository at this point in the history
Fix crash with uninitialized search widget
  • Loading branch information
m-kuhn authored May 4, 2018
2 parents 357be79 + cf92563 commit 9836dc2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui/qgsattributeformrelationeditorwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,9 @@ void QgsAttributeFormRelationEditorWidget::createSearchWidgetWrappers( const Qgs

QString QgsAttributeFormRelationEditorWidget::currentFilterExpression() const
{
return mSearchWidget->expression();
QString filterExpression;
if ( mSearchWidget )
filterExpression = mSearchWidget->expression();

return filterExpression;
}

0 comments on commit 9836dc2

Please sign in to comment.