Skip to content
Permalink
Browse files

Fix potential crash

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

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

if ( mLabeling )
{

0 comments on commit 8b62500

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