tmg-pub / crossrp

addon to help talking to the stinky horde
2 stars 3 forks source link

Fixed Lua error when C_BattleNet.GetGameAccountInfoByID() returns null #16

Closed LenweSaralonde closed 1 month ago

LenweSaralonde commented 1 month ago
Message: Interface/AddOns/CrossRP/protocol.lua:2117: attempt to index local 'game_info' (a nil value)
Time: Thu Aug  1 13:52:14 2024
Count: 1
Stack: Interface/AddOns/CrossRP/protocol.lua:2117: attempt to index local 'game_info' (a nil value)
[string "@Interface/AddOns/CrossRP/protocol.lua"]:2117: in function `handler'
[string "@Interface/AddOns/CrossRP/comm.lua"]:588: in function <Interface/AddOns/CrossRP/comm.lua:564>
[string "@Interface/AddOns/CrossRP/comm.lua"]:679: in function <Interface/AddOns/CrossRP/comm.lua:648>
[string "=[C]"]: ?
[string "@Interface/AddOns/BetterBags/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:19: in function <...ags/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
[string "@Interface/AddOns/BetterBags/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:54: in function `Fire'
[string "@Interface/AddOns/BetterBags/libs/AceEvent-3.0/AceEvent-3.0.lua"]:120: in function <...AddOns/BetterBags/libs/AceEvent-3.0/AceEvent-3.0.lua:119>

Locals: job = <table> {
 type = "BNET"
 slot = "temp"
 text = "HI 2.3.0 ? 0 - -"
 firstpage = true
 complete = true
 time = 7759.458000
 next_page = 1
 command = "HI"
 priority = "NORMAL"
 serial = 40
 prefix = ""
}
sender = 753
version = "2.3.0"
request = "?"
load = 0
short_hash = "-"
personal_hash = "-"
game_info = nil
(*temporary) = nil
(*temporary) = 753
(*temporary) = nil
(*temporary) = 18
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'game_info' (a nil value)"
m_crossrp_gameids = <table> {
 753 = true
}
C_BattleNet = <table> {
}
m_linked_realms = <table> {
 ArgentDawn = true
}
Me = <table> {
 MinimapMenu = <table> {
 }
 MSP = <table> {
 }
 NodeSet = <table> {
 }
 hooks = <table> {
 }
 db = <table> {
 }
 player_guids = <table> {
 }
 horde_touched = 0
 touched_users = <table> {
 }
 MapDataProvider = <table> {
 }
 Locale = <table> {
 }
 fullname = "Lenwë-ArgentDawn"
 ldb = <table> {
 }
 data_channel = "crossrp"
 baseName = "CrossRP"
 bnet_whisper_names = <table> {
 }
 defaultModuleState = true
 Serializer = <table> {
 }
 fake_lineid = -1
 RPChat = <table> {
 }
 dimmed_bubbles = <table> {
 }
 elixir_active = false
 faction = "A"
 startup_time = 7682.683000
 realm = "ArgentDawn"
 Rolls = <table> {
 }
 ElixirNotice = <table> {
 }
 defaultModuleLibraries = <table> {
 }
 modules = <table> {
 }
 version = "2.3.0"
 Comm = <table> {
 }
 orderedModules = <table> {
 }
 TRP = <table> {
 }
 enabledState = true
 timers = <table> {
 }
 Proto = <table> {
 }
 bubbles = <table> {
 }
 last_triggered = <table> {
 }
 name = "CrossRP"
 translate_emotes_option = false
}
m_node_secure_data = <table> {
}
tmg-pub commented 1 month ago

lgtm