~sircmpwn/aerc2#409: 
panic on viewing message from Sent folder

Hi! I have outlook.com account. And I can't read messages from Sent folder.

What I do?

Manually formated stack trace from screenshot above:

panic: runtime error: invalid memory address or nil pointer dereference
signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x59eea4]
goroutine 82 [running]:
bufio.(*Reader).fill(0xc000775f00)
  /home/eugene/.local/go/src/bufio/bufio.go:100 +0xd4
bufio.(*Reader).Peek(0xc00052ef00, 0x1, 0x20, 0xc000168300, 0xc000775d08, 0x412584, 0x7fc2aa87d6d8)
  /home/eugene/.local/go/src/bufio/bufio.go:138 +0x4f
github.com/emersion/go-message/textproto.ReadHeader(0xc00052ef00, 0x1000, 0x1000, 0xc000994000, 0x0, 0x0, 0xc000206060)
  /home/eugene/go/pkg/mod/github.com/emersion/go-message@v0.11.1/textproto/header.go:418 +0x7b
git.sr.ht/~sircmpwn/aerc/worker/imap.(*IMAPWorker).handleFetchMessageBodyPart.func1(0xc0005a3780, 0xc000775f98, 0x1)
  /home/eugene/Downloads/aerc-0.4.0/worker/imap/fetch.go:92 +0xd8
git.sr.ht/~sircmpwn/aerc/worker/imap.(*IMAPWorker).handleFetchMessages.func1(0xc0007e0120, 0xc0001a2460, 0xc0001b2e40, 0xc0007e0180)
  /home/eugene/Downloads/aerc-0.4.0/worker/imap/fetch.go:169 +0xad
created by git.sr.ht/~sircmpwn/aerc/worker/imap.(*IMAPWorker).handleFetchMessages                                                                                                                              
  /home/eugene/Downloads/aerc-0.4.0/worker/imap/fetch.go:165 +0xb6
Status
REPORTED
Submitter
~eugene120520
Assigned to
No-one
Submitted
29 days ago
Updated
29 days ago
Labels
bug