gpgol/web: Crash on sending/autosaving empty message
Open, HighPublic

Assigned To
Authored By
tfry
Fri, Sep 4, 12:40 PM
Subscribers

Description

  • Compose a new message
  • optionally address the message to yourself, but leave everything else empty
  • Click send OR wait for autosave to kick in

-> crash

Event Timeline

tfry triaged this task as High priority.Fri, Sep 4, 12:40 PM
tfry created this task.

See commit for a tentative fix.

Alternatively, we could abort on empty message in ComposerViewBase, but there the situation may be less clear-cut (think attachments, recipients), and a check would need to be added on each of save draft, autosave, send.

I feel a bit unsure due to the differences/inconsistency in the handling in the existing code base (see diff). I unified that, but hope I did not overlook anything.