~rjarry/aerc#80: 
imap: crash while switching tabs

Version: 0.12.0-7-gb11b8de32841 (go1.18.6 amd64 linux)
Error: runtime error: invalid memory address or nil pointer dereference

goroutine 630 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:24 +0x65
git.sr.ht/~rjarry/aerc/logging.PanicHandler()
	git.sr.ht/~rjarry/aerc/logging/panic-logger.go:49 +0x6af
panic({0x9f7d80, 0xfc0150})
	runtime/panic.go:838 +0x207
bufio.(*Reader).fill(0xc002705f00)
	bufio/bufio.go:106 +0xd9
bufio.(*Reader).Peek(0xc002705f00, 0x1)
	bufio/bufio.go:144 +0x5d
github.com/emersion/go-message/textproto.ReadHeader(0xc0001fe600?)
	github.com/emersion/go-message@v0.15.0/textproto/header.go:525 +0x5f
git.sr.ht/~rjarry/aerc/worker/imap.(*IMAPWorker).handleFetchMessageHeaders.func1(0xc0019f3b80)
	git.sr.ht/~rjarry/aerc/worker/imap/fetch.go:49 +0x1ab
git.sr.ht/~rjarry/aerc/worker/imap.(*IMAPWorker).handleFetchMessages.func1()
	git.sr.ht/~rjarry/aerc/worker/imap/fetch.go:219 +0xa2
created by git.sr.ht/~rjarry/aerc/worker/imap.(*IMAPWorker).handleFetchMessages
	git.sr.ht/~rjarry/aerc/worker/imap/fetch.go:214 +0x10e
Status
REPORTED
Submitter
~rjarry
Assigned to
No-one
Submitted
12 days ago
Updated
12 days ago
Labels
bug imap