Skip to content

Commit

Permalink
fix:empty lists are casted to empty string causing a list with one em…
Browse files Browse the repository at this point in the history
…pty string entry

ESPUB-76
  • Loading branch information
torsten-simon committed Sep 6, 2024
1 parent 116f6de commit f33c8ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ protected String getValue(String type, String prop, Object _value, String metada
return result;
} else if (_value instanceof List && ((List) _value).size() == 0) {
// cause empty list toString returns "[]"
return "";
return null;
} else if (_value instanceof String) {
return (String) _value;
} else if (_value instanceof Number) {
Expand Down

0 comments on commit f33c8ce

Please sign in to comment.