Skip to content

Commit

Permalink
Fix potential crash
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 25, 2016
1 parent 19dea08 commit d477d19
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -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 )
{
Expand Down

0 comments on commit d477d19

Please sign in to comment.