Commit 512d6e7
Guard AltitudeChartRenderer against uninitialized PlannerState
When no profile is loaded, PlannerState.AstroDark is default (0001-01-01),
causing DateTimeOffset arithmetic to overflow. Now returns early with just
the background fill when no data is available.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 83c6f66 commit 512d6e7
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
74 | 81 | | |
75 | 82 | | |
76 | 83 | | |
| |||
0 commit comments