Skip to content
Permalink
Browse files

Fixes segfault

  • Loading branch information
pblottiere committed Sep 13, 2018
1 parent 186a5eb commit af9f3166fc31123bcb86a697099df6c914d7ff63
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsogcutils.cpp
@@ -3172,14 +3172,14 @@ QgsExpressionNodeBinaryOperator *QgsOgcUtilsExpressionFromFilter::nodeBinaryOper

QDomElement operandElem = element.firstChildElement();
std::unique_ptr<QgsExpressionNode> expr( nodeFromOgcFilter( operandElem ) );
std::unique_ptr<QgsExpressionNode> leftOp( expr->clone() );

if ( !expr )
{
mErrorMessage = QObject::tr( "invalid left operand for '%1' binary operator" ).arg( element.tagName() );
return nullptr;
}

std::unique_ptr<QgsExpressionNode> leftOp( expr->clone() );
for ( operandElem = operandElem.nextSiblingElement(); !operandElem.isNull(); operandElem = operandElem.nextSiblingElement() )
{
std::unique_ptr<QgsExpressionNode> opRight( nodeFromOgcFilter( operandElem ) );

0 comments on commit af9f316

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