diff --git a/deegree-core/deegree-core-base/src/main/java/org/deegree/gml/feature/GMLFeatureWriter.java b/deegree-core/deegree-core-base/src/main/java/org/deegree/gml/feature/GMLFeatureWriter.java index 2bdc28cc1b..f40b55748e 100644 --- a/deegree-core/deegree-core-base/src/main/java/org/deegree/gml/feature/GMLFeatureWriter.java +++ b/deegree-core/deegree-core-base/src/main/java/org/deegree/gml/feature/GMLFeatureWriter.java @@ -491,7 +491,7 @@ private void writeNilAttributes(Map attributes) throws XM writeAttributeWithNS(XSI_NIL.getNamespaceURI(), XSI_NIL.getLocalPart(), "true"); PrimitiveValue value = attributes.get(NIL_REASON); if (value != null) - writeAttributeWithNS(NIL_REASON.getNamespaceURI(), NIL_REASON.getLocalPart(), "true"); + writeAttributeWithNS(NIL_REASON.getNamespaceURI(), NIL_REASON.getLocalPart(), value.getAsText()); } private boolean excludeByTimeSliceFilter(Property property) {