Commit 2ccc57d
authored
fix: Avoid NullPointerException in certain conn error cases (#68)
Motivation
In rare cases it's possible that the exception passed to the EtcdClient#reauthRequired() has CANCELLED gRPC code but no cause, which causes an NPE.
Modifications
Add null check to EtcdClient#reauthRequired()
Result
Avoid NPE1 parent 376acbe commit 2ccc57d
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
611 | 614 | | |
612 | 615 | | |
613 | 616 | | |
| |||
0 commit comments