Skip to content
Permalink
Browse files

Fixes segfault when filter is empty

  • Loading branch information
pblottiere committed Sep 7, 2018
1 parent 1839daa commit 2aeb5cf73550c32c2195236ec2e6c003db4764c0
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/server/services/wms/qgswmsrenderer.cpp
@@ -2811,7 +2811,11 @@ namespace QgsWms
}
QDomElement filterElem = filterXml.firstChildElement();
std::unique_ptr<QgsExpression> expression( QgsOgcUtils::expressionFromOgcFilter( filterElem, filteredLayer ) );
mFeatureFilter.setFilter( filteredLayer, *expression );

if ( expression )
{
mFeatureFilter.setFilter( filteredLayer, *expression );
}
}
else
{

0 comments on commit 2aeb5cf

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