Skip to content
Permalink
Browse files

Fix Coverity null pointer dererence warning

  • Loading branch information
nyalldawson committed Apr 3, 2018
1 parent 7b0cf28 commit a3605b5316f908baae09f3732d907a63388ea989
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/attributetable/qgsdualview.cpp
@@ -569,7 +569,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 a3605b5

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