Skip to content

Commit

Permalink
Merge pull request #45213 from qgis/backport-45203-to-release-3_16
Browse files Browse the repository at this point in the history
[Backport release-3_16] Fix Check Geometries plugin crash
  • Loading branch information
m-kuhn committed Sep 23, 2021
2 parents 0a5a8e7 + b7a300d commit 7a5799e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/geometry_checker/qgsgeometrycheckerresulttab.cpp
Expand Up @@ -333,7 +333,10 @@ void QgsGeometryCheckerResultTab::highlightErrors( bool current )

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

0 comments on commit 7a5799e

Please sign in to comment.