Skip to content

Commit

Permalink
Avoid NPE when DirectWithAttributesChannel class is not available (#7133
Browse files Browse the repository at this point in the history
)

Resolves
#7123
  • Loading branch information
laurit authored Nov 11, 2022
1 parent c009c79 commit 2107109
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ private static MethodHandle getChannelAttributeMh(Class<?> directWithAttributesC
}

private boolean createProducerSpan(MessageChannel messageChannel) {
if (!producerSpanEnabled) {
if (!producerSpanEnabled || directWithAttributesChannelClass == null) {
return false;
}

Expand Down

0 comments on commit 2107109

Please sign in to comment.