diff --git a/api/src/main/java/org/eclipse/daanse/xmla/api/PropertyDefinition.java b/api/src/main/java/org/eclipse/daanse/xmla/api/PropertyDefinition.java index f8bd0f2..e41e532 100644 --- a/api/src/main/java/org/eclipse/daanse/xmla/api/PropertyDefinition.java +++ b/api/src/main/java/org/eclipse/daanse/xmla/api/PropertyDefinition.java @@ -209,7 +209,9 @@ public enum PropertyDefinition { // Thus the client will receive the same XML, regardless // of the server O/S. assert description.indexOf('\r') == -1; - assert value.indexOf('\r') == -1; + if (value != null) { + assert value.indexOf('\r') == -1; + } assert (enumSet != null) == type.isEnum(); this.type = type; this.enumSet = enumSet;