Commit af059d8
committed
Add null safety checks for Azure SDK responses
- Add null checks for certificate.Value.Cer in GetCertificateAsync
- Add null checks for certificate.Value.Value in GetCertificateWithPrivateKeyAsync
- Prevents NullReferenceException when mocked clients return null responses
- Improves defensive programming for edge cases1 parent 361c96d commit af059d8
File tree
1 file changed
+12
-0
lines changed- src/LettuceEncrypt.Azure/Internal
1 file changed
+12
-0
lines changedLines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
| |||
95 | 101 | | |
96 | 102 | | |
97 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
98 | 110 | | |
99 | 111 | | |
100 | 112 | | |
| |||
0 commit comments