diff --git a/spring-cloud-function-context/src/main/java/org/springframework/cloud/function/cloudevent/CloudEventMessageUtils.java b/spring-cloud-function-context/src/main/java/org/springframework/cloud/function/cloudevent/CloudEventMessageUtils.java index 83af8d825..90fdbcdbd 100644 --- a/spring-cloud-function-context/src/main/java/org/springframework/cloud/function/cloudevent/CloudEventMessageUtils.java +++ b/spring-cloud-function-context/src/main/java/org/springframework/cloud/function/cloudevent/CloudEventMessageUtils.java @@ -455,7 +455,7 @@ private static Message buildBinaryMessageFromStructuredMap(Map map, String key) { Object uri = map.get(key); - if (uri != null && uri instanceof String) { + if (uri != null) { if (uri instanceof String) { uri = URI.create((String) uri); }