Skip to content

Commit

Permalink
fix: Unmarshalling hexBinary with leading whitespaces yields null
Browse files Browse the repository at this point in the history
  • Loading branch information
netmikey committed Jun 24, 2024
1 parent 748c50b commit b3555ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public HexBinaryAdapter() {}
@Override
public byte[] unmarshal(String s) {
if(s==null) return null;
return DatatypeConverter.parseHexBinary(s);
return DatatypeConverter.parseHexBinary(s.trim());
}

@Override
Expand Down

0 comments on commit b3555ec

Please sign in to comment.