Skip to content

Commit 2f6e6ca

Browse files
committedJun 8, 2014
fix browser crash (fixes #10461)
1 parent 87c4f80 commit 2f6e6ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/gui/attributetable/qgsattributetablemodel.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ void QgsAttributeTableModel::loadAttributes()
247247
for ( int idx = 0; idx < fields.count(); ++idx )
248248
{
249249
QgsEditorWidgetFactory* widgetFactory = QgsEditorWidgetRegistry::instance()->factory( layer()->editorWidgetV2( idx ) );
250+
if ( !widgetFactory || !layer() )
251+
continue;
250252

251253
mWidgetFactories.append( widgetFactory );
252254
mWidgetConfigs.append( layer()->editorWidgetV2Config( idx ) );

0 commit comments

Comments
 (0)
Please sign in to comment.