There was an error while loading. Please reload this page.
2 parents 357be79 + cf92563 commit 9836dc2Copy full SHA for 9836dc2
1 file changed
src/gui/qgsattributeformrelationeditorwidget.cpp
@@ -39,5 +39,9 @@ void QgsAttributeFormRelationEditorWidget::createSearchWidgetWrappers( const Qgs
39
40
QString QgsAttributeFormRelationEditorWidget::currentFilterExpression() const
41
{
42
- return mSearchWidget->expression();
+ QString filterExpression;
43
+ if ( mSearchWidget )
44
+ filterExpression = mSearchWidget->expression();
45
+
46
+ return filterExpression;
47
}
0 commit comments