Skip to content

Commit 2900ae2

Browse files
committedApr 6, 2018
Fix Coverity null pointer dererence warning
(cherry-picked from a3605b5)
1 parent 6c0fae3 commit 2900ae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/attributetable/qgsdualview.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ void QgsDualView::viewWillShowContextMenu( QMenu *menu, const QModelIndex &atInd
571571
if ( !action.runable() )
572572
continue;
573573

574-
if ( !vl->isEditable() && action.isEnabledOnlyWhenEditable() )
574+
if ( vl && !vl->isEditable() && action.isEnabledOnlyWhenEditable() )
575575
continue;
576576

577577
QgsAttributeTableAction *a = new QgsAttributeTableAction( action.name(), this, action.id(), sourceIndex );

0 commit comments

Comments
 (0)
Please sign in to comment.