Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes segmentation fault
  • Loading branch information
pblottiere committed Apr 12, 2018
1 parent 91a229b commit 39a1fab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/qgsogcutils.cpp
Expand Up @@ -2191,7 +2191,10 @@ QDomElement QgsOgcUtils::expressionToOgcExpression( const QgsExpression &exp,
break;
}
default:
*errorMessage = QObject::tr( "Node type not supported in expression translation: %1" ).arg( node->nodeType() );
{
if ( errorMessage )
*errorMessage = QObject::tr( "Node type not supported in expression translation: %1" ).arg( node->nodeType() );
}
}
// got an error
return QDomElement();
Expand Down

0 comments on commit 39a1fab

Please sign in to comment.