Skip to content
Permalink
Browse files

Fixes segmentation fault

  • Loading branch information
pblottiere committed Apr 12, 2018
1 parent 91a229b commit 39a1fabbf4368121540697b1400bfac65b155c19
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/qgsogcutils.cpp
@@ -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();

0 comments on commit 39a1fab

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