Skip to content

Commit

Permalink
adds guard to prevent crash with mesh vector renderer
Browse files Browse the repository at this point in the history
If the vector renderer factory returns a null ptr, this prevents QGIS crashing
.
  • Loading branch information
vcloarec authored and nyalldawson committed Dec 4, 2019
1 parent b736bf9 commit 14c0d2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/mesh/qgsmeshlayerrenderer.cpp
Expand Up @@ -362,6 +362,7 @@ void QgsMeshLayerRenderer::renderVectorDataset()
mLayerExtent,
mOutputSize ) );

renderer->draw();
if ( renderer )
renderer->draw();
}

0 comments on commit 14c0d2c

Please sign in to comment.