~m31


#406 deleting a filtered message leads to "invalid memory address or nil pointer dereference" a month ago

bug added by ~m31 on ~sircmpwn/aerc2

#406 deleting a filtered message leads to "invalid memory address or nil pointer dereference" a month ago

Ticket created by ~m31 on ~sircmpwn/aerc2

  • aerc version: aerc 0.3.0.r183.g61e9940
  • steps to reproduce:
    1. filter the list of messages with \
    2. delete one messge with D
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x5584b9d5226b]

goroutine 1 [running]:
git.sr.ht/~sircmpwn/aerc/widgets.(*MessageList).Draw(0xc0000799e0, 0xc000305860)
    git.sr.ht/~sircmpwn/aerc/widgets/msglist.go:112 +0x2cb
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc00012e630, 0xc0003057d0)
    git.sr.ht/~sircmpwn/aerc/lib/ui/grid.go:142 +0x257
git.sr.ht/~sircmpwn/aerc/widgets.(*AccountView).Draw(0xc00021c5b0, 0xc0003057d0)
    git.sr.ht/~sircmpwn/aerc/widgets/account.go:142 +0x3b
git.sr.ht/~sircmpwn/aerc/lib/ui.(*TabContent).Draw(0xc00021c4d0, 0xc0003057d0)
    git.sr.ht/~sircmpwn/aerc/lib/ui/tab.go:393 +0x61
git.sr.ht/~sircmpwn/aerc/lib/ui.(*Grid).Draw(0xc00012e4d0, 0xc00022c3f0)
    git.sr.ht/~sircmpwn/aerc/lib/ui/grid.go:142 +0x257
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Draw(0xc00012e580, 0xc00022c3f0)
    git.sr.ht/~sircmpwn/aerc/widgets/aerc.go:172 +0x3f
git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc00007a820, 0xc0001eb300)
    git.sr.ht/~sircmpwn/aerc/lib/ui/ui.go:113 +0xf8
main.main()
    git.sr.ht/~sircmpwn/aerc/aerc.go:192 +0x674