Commit 04dcfdb
committed
GH-3246: Fix NPEs for AMQP properties conversion
Fixes: #3246
The received message might come not from Spring AMQP source,
therefore it might not have `priority` and `content-type` set.
* Fix `DefaultMessagePropertiesConverter` checking for the nulls in the
`priority` and `content-type`
* Remove redundant null check for `priority` in the `MessageBuilderSupport`1 parent b42da81 commit 04dcfdb
File tree
2 files changed
+10
-4
lines changed- spring-amqp/src/main/java/org/springframework/amqp/core
- spring-rabbit/src/main/java/org/springframework/amqp/rabbit/support
2 files changed
+10
-4
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
267 | 268 | | |
268 | 269 | | |
269 | 270 | | |
270 | | - | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
132 | 138 | | |
133 | 139 | | |
134 | 140 | | |
| |||
0 commit comments