Commit da2c8fc
committed
Add defensive check for RabbitProperties to prevent NPE
Before this commit, RabbitProperties cannot be copied when addresses is null.
Signed-off-by: Yanming Zhou <[email protected]>1 parent 6957557 commit da2c8fc
File tree
2 files changed
+11
-0
lines changed- spring-boot-project/spring-boot-autoconfigure/src
- main/java/org/springframework/boot/autoconfigure/amqp
- test/java/org/springframework/boot/autoconfigure/amqp
2 files changed
+11
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
236 | 239 | | |
237 | 240 | | |
238 | 241 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
381 | 382 | | |
382 | 383 | | |
383 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
384 | 392 | | |
0 commit comments