From 087453df3bec1223c7138d2d4280f62253d12e22 Mon Sep 17 00:00:00 2001 From: Adam Retter Date: Fri, 28 Jun 2024 16:45:57 +0100 Subject: [PATCH] [bugfix] Correct the empty use charmaps check --- src/main/java/org/expath/tools/saxon/model/SaxonSequence.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/expath/tools/saxon/model/SaxonSequence.java b/src/main/java/org/expath/tools/saxon/model/SaxonSequence.java index d969cb6..7f81ce5 100644 --- a/src/main/java/org/expath/tools/saxon/model/SaxonSequence.java +++ b/src/main/java/org/expath/tools/saxon/model/SaxonSequence.java @@ -110,7 +110,7 @@ private Properties makeOutputProperties(SerialParameters params) setOutputKey(props, SaxonOutputKeys.INCLUDE_CONTENT_TYPE, params.getIncludeContentType()); setOutputKey(props, SaxonOutputKeys.NORMALIZATION_FORM, params.getNormalizationForm()); setOutputKey(props, SaxonOutputKeys.UNDECLARE_PREFIXES, params.getUndeclarePrefixes()); - if ( params.getUseCharacterMaps() != null ) { + if ( params.getUseCharacterMaps() != null && params.getUseCharacterMaps().iterator().hasNext() ) { // TODO: How are we supposed to pass this param through a string property? throw new ToolsException("Use character map serialization parameter is not supported"); }