Skip to content
Permalink
Browse files

Fix Coverity null pointer dererence warning

(cherry-picked from a3605b5)
  • Loading branch information
nyalldawson committed Apr 6, 2018
1 parent 6c0fae3 commit 2900ae2b8e711f99ef2218d3a0b2fe806b0d40ca
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/attributetable/qgsdualview.cpp
@@ -571,7 +571,7 @@ void QgsDualView::viewWillShowContextMenu( QMenu *menu, const QModelIndex &atInd
if ( !action.runable() )
continue;

if ( !vl->isEditable() && action.isEnabledOnlyWhenEditable() )
if ( vl && !vl->isEditable() && action.isEnabledOnlyWhenEditable() )
continue;

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

0 comments on commit 2900ae2

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