Skip to content

Commit

Permalink
[bugfix] Correct the empty use charmaps check
Browse files Browse the repository at this point in the history
  • Loading branch information
adamretter committed Jun 28, 2024
1 parent 65210de commit 087453d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 087453d

Please sign in to comment.