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 github-actions[bot] committed Sep 23, 2021
1 parent 0a5a8e7 commit 8cc9d60
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 8cc9d60

Please sign in to comment.