We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87c4f80 commit 2f6e6caCopy full SHA for 2f6e6ca
src/gui/attributetable/qgsattributetablemodel.cpp
@@ -247,6 +247,8 @@ void QgsAttributeTableModel::loadAttributes()
247
for ( int idx = 0; idx < fields.count(); ++idx )
248
{
249
QgsEditorWidgetFactory* widgetFactory = QgsEditorWidgetRegistry::instance()->factory( layer()->editorWidgetV2( idx ) );
250
+ if ( !widgetFactory || !layer() )
251
+ continue;
252
253
mWidgetFactories.append( widgetFactory );
254
mWidgetConfigs.append( layer()->editorWidgetV2Config( idx ) );
0 commit comments