Skip to content
Permalink
Browse files

Merge pull request #6930 from m-kuhn/fixSearchCrash

Fix crash with uninitialized search widget
  • Loading branch information
m-kuhn committed May 4, 2018
2 parents 357be79 + cf92563 commit 9836dc222feb2040a66ee7c81e2c99cfb96fcc48
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 9836dc2

Please sign in to comment.
You can’t perform that action at this time.