Skip to content

Commit eca0d3b

Browse files
dbulahovstbischof
authored andcommitted
fix npe
Signed-off-by: dbulahov <[email protected]>
1 parent 0e8296e commit eca0d3b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/src/main/java/org/eclipse/daanse/xmla/api/PropertyDefinition.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ public enum PropertyDefinition {
209209
// Thus the client will receive the same XML, regardless
210210
// of the server O/S.
211211
assert description.indexOf('\r') == -1;
212-
assert value.indexOf('\r') == -1;
212+
if (value != null) {
213+
assert value.indexOf('\r') == -1;
214+
}
213215
assert (enumSet != null) == type.isEnum();
214216
this.type = type;
215217
this.enumSet = enumSet;

0 commit comments

Comments
 (0)