aaronma37 / Deathlog

GNU General Public License v3.0
13 stars 11 forks source link

Bug fix #93

Closed Aqru closed 1 year ago

Aqru commented 1 year ago

I sometimes catch this error:

4x Deathlog/utils.lua:112: bad argument #2 to 'strsplit' (string expected, got nil)
[string "=[C]"]: in function `strsplit'
[string "@Deathlog/utils.lua"]:112: in function `deathlogPredictSource'
[string "@Deathlog/Widgets/DeathAlert/widget.lua"]:220: in function `Deathlog_DeathAlertPlay'
[string "@Deathlog/Widgets/DeathAlert/widget.lua"]:114: in function `Deathlog_DeathAlertFakeDeath'
[string "@Deathlog/Widgets/DeathAlert/widget.lua"]:923: in function <Deathlog/Widgets/DeathAlert/widget.lua:922>
[string "=[C]"]: ?
[string "@Decursive/Libs/AceConfig-3.0-3/AceConfigDialog-3.0-86/AceConfigDialog-3.0.lua"]:45: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:43>
[string "@Decursive/Libs/AceConfig-3.0-3/AceConfigDialog-3.0-86/AceConfigDialog-3.0.lua"]:836: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:658>
[string "=[C]"]: ?
[string "@Deathlog/Libs/AceGUI-3.0-41/AceGUI-3.0.lua"]:72: in function <...rfaceDeathlog/Libs/AceGUI-3.0/AceGUI-3.0.lua:70>
[string "@Deathlog/Libs/AceGUI-3.0-41/AceGUI-3.0.lua"]:306: in function `Fire'
[string "@Deathlog/Libs/AceGUI-3.0-41/widgets/AceGUIWidget-Button.lua"]:22: in function <...hlog/Libs/AceGUI-3.0/widgets/AceGUIWidget-Button.lua:19>

Locals:
(*temporary) = ","
(*temporary) = nil
(*temporary) = 2
(*temporary) = "string expected, got nil"

This fix should prevent this from happening.