-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException in AbstractKafkaHeaderMapper #3581
Milestone
Comments
The code there is like this:
The Thank you for the catch! |
artembilan
added
for: backport-to-3.1.x
for: backport-to-3.2.x
and removed
status: waiting-for-triage
labels
Oct 21, 2024
sobychacko
added a commit
to sobychacko/spring-kafka
that referenced
this issue
Oct 21, 2024
Fixes: spring-projects#3581 spring-projects#3581 - Optimize headerValueToAddIn method by adding better null checks - Add unit test to verify
artembilan
pushed a commit
that referenced
this issue
Oct 21, 2024
This was referenced Oct 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In what version(s) of Spring for Apache Kafka are you seeing this issue?
3.2.4
Describe the bug
When we updated Spring Boot to latest RELEASE version we started to get
NullPointerException
from our listener.I am unable to find out what triggered this, but is happening when there is in
ConsumerRecord
someRecordHeader
withnull
value.This is probably bug in our custom application, but I think Spring Kafka header mapper should handle such cases in better way other than to throw NPE.
The text was updated successfully, but these errors were encountered: