Skip to content

Commit

Permalink
server: keep NULL values on featureinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 18, 2015
1 parent 9a75c9e commit 4321c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/qgswmsserver.cpp
Expand Up @@ -2098,7 +2098,7 @@ int QgsWMSServer::featureInfoFromVectorLayer( QgsVectorLayer* layer,
attributeElement.setAttribute( "value",
replaceValueMapAndRelation(
layer, i,
QgsExpression::replaceExpressionText( featureAttributes[i].toString(), &feature, layer )
featureAttributes[i].isNull() ? QString::null : QgsExpression::replaceExpressionText( featureAttributes[i].toString(), &feature, layer )
)
);
featureElement.appendChild( attributeElement );
Expand Down

0 comments on commit 4321c09

Please sign in to comment.