Skip to content
Permalink
Browse files

Fix potential crash

  • Loading branch information
nyalldawson committed Aug 25, 2016
1 parent 19dea08 commit d477d19ec89503fc612e7cca4e947d68c0b9f747
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/core/qgsvectorlayer.cpp
@@ -1918,8 +1918,11 @@ bool QgsVectorLayer::writeStyle( QDomNode &node, QDomDocument &doc, QString &err

if ( hasGeometryType() )
{
QDomElement rendererElement = mRenderer->save( doc );
node.appendChild( rendererElement );
if ( mRenderer )
{
QDomElement rendererElement = mRenderer->save( doc );
node.appendChild( rendererElement );
}

if ( mLabeling )
{

0 comments on commit d477d19

Please sign in to comment.
You can’t perform that action at this time.