Describe the bug
In tui/email_view.go:463-475, renderCalendarInvite() accesses event.Summary, event.Start, etc. without nil-checking the event parameter. If ParseICS() returns a successfully parsed calendar with nil event fields, this panics.
To reproduce
- Receive an email with a minimal/malformed ICS attachment (e.g., VEVENT with no DTSTART)
- Open the email
- Panic on nil field access
Expected behavior
Check that event and its required fields are non-nil/non-zero before rendering.
Describe the bug
In tui/email_view.go:463-475,
renderCalendarInvite()accessesevent.Summary,event.Start, etc. without nil-checking theeventparameter. IfParseICS()returns a successfully parsed calendar with nil event fields, this panics.To reproduce
Expected behavior
Check that
eventand its required fields are non-nil/non-zero before rendering.