matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Missing nil check on calendar event in renderCalendarInvite

Open andrinoff opened this issue 7 months ago • 1 comments

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

  1. Receive an email with a minimal/malformed ICS attachment (e.g., VEVENT with no DTSTART)
  2. Open the email
  3. Panic on nil field access

Expected behavior

Check that event and its required fields are non-nil/non-zero before rendering.

andrinoff avatar Apr 24 '26 20:04 andrinoff

/assign

mavonx avatar Apr 26 '26 08:04 mavonx