Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mail_mod/ui/events.lua:71: attempt to index a nil value #64

Closed
Bastrabun opened this issue Apr 14, 2023 · 2 comments · Fixed by #66
Closed

mail_mod/ui/events.lua:71: attempt to index a nil value #64

Bastrabun opened this issue Apr 14, 2023 · 2 comments · Fixed by #66
Labels
Bug Something isn't working
Milestone

Comments

@Bastrabun
Copy link

When a user clicks any of the column headers, the server crashes.

2023-04-14 21:54:06: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'mail' in callback on_playerReceiveFields(): ...t/5.6.1/Minetest_test/bin/../mods/mail_mod/ui/events.lua:71: attempt to index a nil value
2023-04-14 21:54:06: ERROR[Main]: stack traceback:
2023-04-14 21:54:06: ERROR[Main]: 	...t/5.6.1/Minetest_test/bin/../mods/mail_mod/ui/events.lua:71: in function 'func'
2023-04-14 21:54:06: ERROR[Main]: 	...inetest_test/bin/../builtin/profiler/instrumentation.lua:107: in function <...inetest_test/bin/../builtin/profiler/instrumentation.lua:100>
2023-04-14 21:54:06: ERROR[Main]: 	.../mt/5.6.1/Minetest_test/bin/../builtin/game/register.lua:432: in function <.../mt/5.6.1/Minetest_test/bin/../builtin/game/register.lua:418>
2023-04-14 23:20:19: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'mail' in callback on_playerReceiveFields(): ...t/5.6.1/Minetest_test/bin/../mods/mail_mod/ui/events.lua:71: attempt to index a nil value
2023-04-14 23:20:19: ERROR[Main]: stack traceback:
2023-04-14 23:20:19: ERROR[Main]: 	...t/5.6.1/Minetest_test/bin/../mods/mail_mod/ui/events.lua:71: in function 'func'
2023-04-14 23:20:19: ERROR[Main]: 	...inetest_test/bin/../builtin/profiler/instrumentation.lua:107: in function <...inetest_test/bin/../builtin/profiler/instrumentation.lua:100>
2023-04-14 23:20:19: ERROR[Main]: 	.../mt/5.6.1/Minetest_test/bin/../builtin/game/register.lua:432: in function <.../mt/5.6.1/Minetest_test/bin/../builtin/game/register.lua:418>

image

For my reference 4198

@Athozus
Copy link
Member

Athozus commented Apr 15, 2023

Ok, trivial (doesn't check if it is an header or a message), going to fix this.

@S-S-X
Copy link
Member

S-S-X commented Apr 15, 2023

Clicking header could maybe set sorting and if same sort field is already selected then toggle sort direction.

@Athozus Athozus linked a pull request Apr 15, 2023 that will close this issue
@Athozus Athozus added this to the 1.1.1 milestone Apr 15, 2023
@Athozus Athozus added the Bug Something isn't working label Apr 15, 2023
@Athozus Athozus closed this as completed Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants