mor integration tests

This commit is contained in:
anhefti 2020-06-15 12:43:31 +02:00
parent 42a5c7cf3b
commit 54c248980b
3 changed files with 85 additions and 5 deletions

View file

@ -85,7 +85,7 @@ public class ArrayOfStringConverter implements AttributeValueConverter {
final ConfigurationValue value,
final boolean xml) throws IOException {
final String val = (value.value != null) ? value.value : attribute.getDefaultValue();
final String val = (value != null && value.value != null) ? value.value : attribute.getDefaultValue();
if (StringUtils.isNotBlank(val)) {
final String[] values = StringUtils.split(val, Constants.LIST_SEPARATOR);

View file

@ -92,7 +92,7 @@ public class InlineTableConverter implements AttributeValueConverter {
(xml) ? XML_KEY_TEMPLATE : JSON_KEY_TEMPLATE,
AttributeValueConverter.extractName(attribute))));
if (StringUtils.isBlank(value.value)) {
if (value == null || StringUtils.isBlank(value.value)) {
out.write((xml) ? XML_EMPTY_ARRAY : JSON_EMPTY_ARRAY);
out.flush();
return;

File diff suppressed because one or more lines are too long