RabbitMQConsumeInterceptor cause NullPointerException
Hi @geekMessi
Looks like AMQP.BasicProperties can be null for empty headers.
(ping @jiaqifeng)
@geekMessi @Xylus Yes, it seems hdeader is null. Since I am in vacation for China spring about a week I will fix this issue a little later. While since header is null, the message sender was not run with pinpoint agent, the this bug will just cause the lost of trace in consumer side, but will not affect the consumer to handle the message correctly. So in most case this exception is harmless.
@jiaqifeng Perfect, thanks :)
@geekMessi @Xylus
PR #3878 submitted. While I could just reproduce the case that headers is null but could not reproduce the AMQP.BasicProperties is null, so I add null check for them all.
@jiaqifeng Thanks. Providing a safeguard for both cases looks like a good solution.
@jiaqifeng
Wonderful! This will work better.
resolved via #3878
Most helpful comment
@geekMessi @Xylus Yes, it seems hdeader is null. Since I am in vacation for China spring about a week I will fix this issue a little later. While since header is null, the message sender was not run with pinpoint agent, the this bug will just cause the lost of trace in consumer side, but will not affect the consumer to handle the message correctly. So in most case this exception is harmless.