matcha
matcha copied to clipboard
BUG: Missing nil check on calendar event in renderCalendarInvite
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.
/assign