diff --git a/interop-testing/src/main/java/io/grpc/testing/integration/AbstractInteropTest.java b/interop-testing/src/main/java/io/grpc/testing/integration/AbstractInteropTest.java index 9a7a256426bc..d9a93873c27a 100644 --- a/interop-testing/src/main/java/io/grpc/testing/integration/AbstractInteropTest.java +++ b/interop-testing/src/main/java/io/grpc/testing/integration/AbstractInteropTest.java @@ -2054,12 +2054,12 @@ public void performSoakTest( .withInterceptors(recordClientCallInterceptor(clientCallCapture)); } SoakIterationResult result = performOneSoakIteration(soakStub); - String peer = clientCallCapture - .get().getAttributes().get(Grpc.TRANSPORT_ATTR_REMOTE_ADDR).toString(); + SocketAddress peer = clientCallCapture + .get().getAttributes().get(Grpc.TRANSPORT_ATTR_REMOTE_ADDR); System.err.print( String.format( "soak iteration: %d elapsed_ms: %d peer: %s", - i, result.getLatencyMs(), peer)); + i, result.getLatencyMs(), peer != null ? peer.toString() : "null")); if (!result.getStatus().equals(Status.OK)) { totalFailures++; System.err.println(String.format(" failed: %s", result.getStatus()));