From 9435272c2604e3f77fce00587c6cbb07a521b080 Mon Sep 17 00:00:00 2001 From: Lauri Tulmin Date: Thu, 12 Dec 2024 17:10:13 +0200 Subject: [PATCH] Avoid exception when redisson address is null --- .../javaagent/instrumentation/redisson/RedissonRequest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/instrumentation/redisson/redisson-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/redisson/RedissonRequest.java b/instrumentation/redisson/redisson-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/redisson/RedissonRequest.java index 4d0bbc4606a7..06f1677279cb 100644 --- a/instrumentation/redisson/redisson-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/redisson/RedissonRequest.java +++ b/instrumentation/redisson/redisson-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/redisson/RedissonRequest.java @@ -35,6 +35,7 @@ public static RedissonRequest create(InetSocketAddress address, Object command) return new AutoValue_RedissonRequest(address, command); } + @Nullable public abstract InetSocketAddress getAddress(); public abstract Object getCommand();