-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
NullPointerException in AbstractKafkaHeaderMapper #3581
Milestone
Comments
The code there is like this:
The Thank you for the catch! |
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
# for free
to join this conversation on GitHub.
Already have an account?
# 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
![image](https://private-user-images.githubusercontent.com/1372054/378483149-9260c4f0-b0dc-4d13-b746-7e6f17f5331c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMDUzMTUsIm5iZiI6MTczOTIwNTAxNSwicGF0aCI6Ii8xMzcyMDU0LzM3ODQ4MzE0OS05MjYwYzRmMC1iMGRjLTRkMTMtYjc0Ni03ZTZmMTdmNTMzMWMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTBUMTYzMDE1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MWNhMGU2MDllYWZmYjAyYTNmYWE2YjMzMGQxN2Q0NGIyNDQ3NDc0NmNjZjUwMjUyMzJhMDYzMzNkMzQ3ZTBlYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.7wQBeivWd45-8ej-QUJqJzfvwrzkwxDoB-4CxiSFe1k)
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: