Skip to content
Permalink
Browse files

Fix crash with uninitialized search widget

  • Loading branch information
m-kuhn committed May 4, 2018
1 parent 357be79 commit cf92563721887d7aa3d9ce71acef1ed164d562df
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/gui/qgsattributeformrelationeditorwidget.cpp
@@ -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.
You can’t perform that action at this time.