Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
Matej Vasek 2020-11-10 18:16:59 +01:00 committed by GitHub
parent d09b621409
commit 118fc82f2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public final class JsonFormat implements EventFormat {
}
try {
return CloudEventBuilder.from(deserialized).withData(
mapper.map(deserialized.getData())
mapper != null ? mapper.map(deserialized.getData()) : deserialized.getData()
).build();
} catch (CloudEventRWException e) {
throw new EventDeserializationException(e);