Skip to content

Commit

Permalink
[vectortile] Add a symbol pointer null check
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and github-actions[bot] committed Feb 12, 2022
1 parent 3337016 commit a9e468b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/vectortile/qgsvectortilebasicrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ void QgsVectorTileBasicRenderer::renderTile( const QgsVectorTileRendererData &ti

for ( const QgsVectorTileBasicRendererStyle &layerStyle : std::as_const( mStyles ) )
{
if ( !layerStyle.isActive( zoomLevel ) )
if ( !layerStyle.isActive( zoomLevel ) || !layerStyle.symbol() )
continue;

QgsExpressionContextScope *scope = new QgsExpressionContextScope( QObject::tr( "Layer" ) ); // will be deleted by popper
Expand Down

0 comments on commit a9e468b

Please sign in to comment.