Commit 88e44d8
committed
fix: handle nil annotations in mse.lua
Previously, mse.lua directly assigned obj.annotations to the annotations
variable without checking for nil, which would cause a runtime error when
the ingress object has no annotations. This aligns mse.lua with the
nil-guard pattern already used in higress.lua, nginx.lua, and aliyun-alb.lua.
Fixes #2281 parent 8416512 commit 88e44d8
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
0 commit comments