We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In RepublishMessageRecoverer#truncateIfNecessary when the message exception is null results in NPE.
RepublishMessageRecoverer#truncateIfNecessary
null
java.lang.NullPointerException: null at org.springframework.amqp.rabbit.retry.RepublishMessageRecoverer.truncateIfNecessary(RepublishMessageRecoverer.java:213) ~[spring-rabbit-2.2.3.RELEASE.jar:2.2.3.RELEASE] at org.springframework.amqp.rabbit.retry.RepublishMessageRecoverer.processStackTrace(RepublishMessageRecoverer.java:206) ~[spring-rabbit-2.2.3.RELEASE.jar:2.2.3.RELEASE] at org.springframework.amqp.rabbit.retry.RepublishMessageRecoverer.recover(RepublishMessageRecoverer.java:158) ~[spring-rabbit-2.2.3.RELEASE.jar:2.2.3.RELEASE]
Example of code:
RepublishMessageRecoverer recoverer = new RepublishMessageRecoverer(amqpTemplate); Throwable nullMessageCause = new Exception(new Exception()); recoverer.recover(message, nullMessageCause);
Versions: 2.2.3 +
The text was updated successfully, but these errors were encountered:
spring-projectsGH-1166: Fix NPE in RepublishMessageRecoverer
cdab94a
Resolves spring-projects#1166 Occurred when the cause had a `null` message.
GH-1166: Fix NPE in RepublishMessageRecoverer
6d2809d
Resolves #1166 Occurred when the cause had a `null` message.
garyrussell
Successfully merging a pull request may close this issue.
In
RepublishMessageRecoverer#truncateIfNecessary
when the message exception isnull
results in NPE.Example of code:
Versions: 2.2.3 +
The text was updated successfully, but these errors were encountered: