Skip to content

Commit

Permalink
Fix TextValue creation from SweText
Browse files Browse the repository at this point in the history
  • Loading branch information
CarstenHollmann committed Jan 31, 2022
1 parent 009ad1f commit 33ae6e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ protected NamedValue<?> parseNamedValueValue(XmlObject xml) throws DecodingExcep
return namedValue;
} else if (value instanceof SweText) {
NamedValue<String> namedValue = new NamedValue<>();
namedValue.setValue(new TextValue(((SweText) value).getValue()));
namedValue.setValue(new TextValue((SweText) value));
return namedValue;
} else if (value instanceof String) {
NamedValue<String> namedValue = new NamedValue<>();
Expand Down

0 comments on commit 33ae6e3

Please sign in to comment.