Commit 6b2ad0d
committed
Fix
The `messageProperties.getReplyTo()` might be null, so set it into `amqpMessage::to`
only if it is not null
* Add convenient `JavaUtils.acceptOrElseIfNotNull()` for two alternative valuesRabbitAmqpUtils.toAmqpMessage() util for to prop1 parent b6b61c4 commit 6b2ad0d
File tree
2 files changed
+24
-6
lines changed- spring-amqp/src/main/java/org/springframework/amqp/utils
- spring-rabbitmq-client/src/main/java/org/springframework/amqp/rabbitmq/client
2 files changed
+24
-6
lines changedLines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
139 | 159 | | |
spring-rabbitmq-client/src/main/java/org/springframework/amqp/rabbitmq/client/RabbitAmqpUtils.java
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 90 | + | |
96 | 91 | | |
97 | 92 | | |
98 | 93 | | |
99 | 94 | | |
100 | 95 | | |
101 | 96 | | |
102 | 97 | | |
| 98 | + | |
| 99 | + | |
103 | 100 | | |
104 | 101 | | |
| 102 | + | |
105 | 103 | | |
106 | 104 | | |
107 | 105 | | |
| |||
0 commit comments