FINERACT-1724: Client search API fix when external ID is null

This commit is contained in:
Arnold Galovics
2023-07-24 15:55:43 +02:00
committed by Arnold Gálovics
parent 81a41e7b7e
commit 7c80bf2ffc
2 changed files with 28 additions and 0 deletions
@@ -42,6 +42,8 @@ public class ExternalIdJsonConverter implements JsonConverter<ExternalId> {
public void convertToJson(ExternalId value, JsonGenerator generator) throws IOException {
if (value != null && !value.isEmpty()) {
generator.writeString(value.getValue());
} else {
generator.writeNull();
}
}