Commit 4753de5
authored
Avoid NPE when merging trailers in GrpcExceptionHandledServerCall
This commit adds a null check on the trailers returns by the status exception in
`GrpcExceptionHandledServerCall` and only merges the exceptions trailers
when they are non-null.
Fixes #229
Signed-off-by: Andrey Litvitski <[email protected]>1 parent b3eb9c2 commit 4753de5
File tree
1 file changed
+4
-1
lines changed- spring-grpc-core/src/main/java/org/springframework/grpc/server/exception
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
0 commit comments