Skip to content

Commit

Permalink
Fix crash with uninitialized search widget
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed May 4, 2018
1 parent 357be79 commit cf92563
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 cf92563

Please sign in to comment.