aerc/widgets
Ensar Sarajčić 3b90b3b0dd fix: crash when copying/moving all messages
This prevents dereferencing nil when updating RUE counts. This seems to
happen for messages that were not yet loaded, but were selected for
copy operation. This can happen when using `mark -a` command and then
initiating copy operation.

When such message is encountered during RUE counting, it is stopped
and full recount is triggered.

**Original backtrace:**
Error: runtime error: invalid memory address or nil pointer dereference

goroutine 1 [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:45 +0x64b
panic({0x9e5f80, 0xecc360})
	runtime/panic.go:844 +0x258
git.sr.ht/~rjarry/aerc/widgets.(*AccountView).onMessage(0xc0001be870, {0xb7f860?, 0xc00073b4c0?})
	git.sr.ht/~rjarry/aerc/widgets/account.go:353 +0xecc
git.sr.ht/~rjarry/aerc/widgets.(*AccountView).Tick(0xc0001be870)
	git.sr.ht/~rjarry/aerc/widgets/account.go:116 +0x6c
git.sr.ht/~rjarry/aerc/widgets.(*Aerc).Tick(0xc0003ba000)
	git.sr.ht/~rjarry/aerc/widgets/aerc.go:144 +0x7a
main.main()
	git.sr.ht/~rjarry/aerc/aerc.go:225 +0xbb8

Signed-off-by: Ensar Sarajčić <dev@ensarsarajcic.com>
Acked-by: Robin Jarry <robin@jarry.cc>
2022-07-24 23:07:14 +02:00
..
account-wizard.go logging: use level-based logger functions 2022-07-23 22:52:15 +02:00
account.go fix: crash when copying/moving all messages 2022-07-24 23:07:14 +02:00
aerc.go logging: use level-based logger functions 2022-07-23 22:52:15 +02:00
authinfo.go uiconfig: use pointer references to uiConfig 2022-07-03 21:32:18 +02:00
common.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
compose.go logging: use level-based logger functions 2022-07-23 22:52:15 +02:00
dirlist.go logging: use level-based logger functions 2022-07-23 22:52:15 +02:00
dirtree.go dirlist: fix panic when disconnecting with dirlist-tree=false 2022-06-07 18:01:25 +02:00
exline.go uiconfig: use pointer references to uiConfig 2022-07-03 21:32:18 +02:00
getpasswd.go uiconfig: use pointer references to uiConfig 2022-07-03 21:32:18 +02:00
headerlayout.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
msglist.go logging: use level-based logger functions 2022-07-23 22:52:15 +02:00
msgviewer.go logging: use level-based logger functions 2022-07-23 22:52:15 +02:00
pgpinfo.go uiconfig: use pointer references to uiConfig 2022-07-03 21:32:18 +02:00
providesmessage.go msgviewer: open http links from messages 2022-06-14 22:12:48 +02:00
scrollable.go scrollable: extract scrolling behavior for reuse 2022-03-03 21:11:05 +01:00
selector.go uiconfig: use pointer references to uiConfig 2022-07-03 21:32:18 +02:00
spinner.go logging: added a log on panic 2022-03-23 20:56:09 +01:00
status.go uiconfig: use pointer references to uiConfig 2022-07-03 21:32:18 +02:00
tabhost.go Implement style configuration. 2020-08-06 21:42:06 +02:00
terminal.go terminal: fix deadlock with finer-grained locking 2022-05-25 22:18:26 +02:00