Curious to know – was this in response to https://todo.sr.ht/~sircmpwn/aerc2/348
(Crash on embedded terminal mouse scroll event), or was it unrelated?
On Sat, Feb 22, 2020, at 18:05, Wiktor Kwapisiewicz wrote:
> Using mouse scroll before messages load will trigger a panic as> `ml.store` has not been assigned yet and is `nil`.
On 23.02.2020 09:18, Amir Yalon wrote:
> Curious to know – was this in response to https://todo.sr.ht/~sircmpwn/aerc2/348> (Crash on embedded terminal mouse scroll event), or was it unrelated?
To be honest I first saw your issue, tried to reproduce it, but then
found a different bug (that looked similar) and fixed that one.
I should've attached the stacktrace to my commit as it shows the panic
comes from a different part of code (msglist.go) that your trace doesn't
have.
I do suspect that fix to your code should also be simple if != nil in
the line that the stacktrace shows. If you're interested in fixing it
I'd recommend building from source, reproducing, checking the exact
line, adding if != nil and then recompiling and re-checking.
Hope that helps!
Kind regards,
Wiktor
--
https://metacode.biz/@wiktor