Skip to content

Commit

Permalink
check if null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
Koyaani authored and nyalldawson committed Sep 23, 2021
1 parent ac72a34 commit a1dd968
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/plugins/geometry_checker/qgsgeometrycheckerresulttab.cpp
Expand Up @@ -333,7 +333,11 @@ void QgsGeometryCheckerResultTab::highlightErrors( bool current )

if ( current )
{
items.append( ui.tableWidgetErrors->currentItem() );
QTableWidgetItem *item = ui.tableWidgetErrors->currentItem();
if ( item )
{
items.append( item );
}
}
else
{
Expand Down

0 comments on commit a1dd968

Please sign in to comment.