Skip to content

Commit 84eec92

Browse files
neetkeegaryrussell
authored andcommitted
InvocationResult: Fix checking for null
1 parent cd2d77e commit 84eec92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-kafka/src/main/java/org/springframework/kafka/listener/adapter/InvocationResult.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ public boolean isMessageReturnType() {
5757

5858
@Override
5959
public String toString() {
60-
return "InvocationResult [result=" + this.result // NOSONAR false positive
61-
+ ", sendTo=" + this.sendTo == null ? "null" : this.sendTo.getExpressionString()
60+
return "InvocationResult [result=" + this.result
61+
+ ", sendTo=" + (this.sendTo == null ? "null" : this.sendTo.getExpressionString())
6262
+ ", messageReturnType=" + this.messageReturnType + "]";
6363
}
6464

0 commit comments

Comments
 (0)