Skip to content

Commit 4321c09

Browse files
committedFeb 18, 2015
server: keep NULL values on featureinfo
1 parent 9a75c9e commit 4321c09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/server/qgswmsserver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2098,7 +2098,7 @@ int QgsWMSServer::featureInfoFromVectorLayer( QgsVectorLayer* layer,
20982098
attributeElement.setAttribute( "value",
20992099
replaceValueMapAndRelation(
21002100
layer, i,
2101-
QgsExpression::replaceExpressionText( featureAttributes[i].toString(), &feature, layer )
2101+
featureAttributes[i].isNull() ? QString::null : QgsExpression::replaceExpressionText( featureAttributes[i].toString(), &feature, layer )
21022102
)
21032103
);
21042104
featureElement.appendChild( attributeElement );

0 commit comments

Comments
 (0)
Please sign in to comment.