Commit 5e4914e
Fix nil pointer dereference in longTermRetentionPolicy
Extract weeklyRetention, monthlyRetention, and yearlyRetention into
local variables inside the policy.Properties nil guard. Previously
these fields were accessed directly on policy.Properties in the
CreateResource call, which would panic if Properties was nil.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 3fbbc64 commit 5e4914e
1 file changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
847 | | - | |
848 | | - | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
849 | 855 | | |
850 | 856 | | |
851 | 857 | | |
852 | 858 | | |
853 | 859 | | |
854 | | - | |
855 | | - | |
856 | | - | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
857 | 863 | | |
858 | 864 | | |
859 | 865 | | |
| |||
0 commit comments