silverwind / idTip

WoW Addon: Adds IDs to the ingame tooltips
BSD 2-Clause "Simplified" License
41 stars 32 forks source link

clicking character names to whisper them causes a lua error #115

Closed kazlu closed 3 months ago

kazlu commented 3 months ago

In the chat window, when some one has talked in chat, and I try to click their name to whisper them I get the following error

Message: Interface/AddOns/idTip/idTip.lua:99: bad argument #1 to 'GetSpellTexture' (Usage: local iconID, originalIconID = C_Spell.GetSpellTexture(spellIdentifier))
Time: Mon Jul 22 22:38:14 2024
Count: 4
Stack: Interface/AddOns/idTip/idTip.lua:99: bad argument #1 to 'GetSpellTexture' (Usage: local iconID, originalIconID = C_Spell.GetSpellTexture(spellIdentifier))
[string "@Interface/AddOns/idTip/idTip.lua"]:99: in function <Interface/AddOns/idTip/idTip.lua:94>
[string "@Interface/AddOns/idTip/idTip.lua"]:284: in function <Interface/AddOns/idTip/idTip.lua:282>
[string "=[C]"]: ?
[string "=[C]"]: ?
[string "@Interface/AddOns/Blizzard_CombatLog/Mainline/Blizzard_CombatLog.lua"]:3488: in function <...s/Blizzard_CombatLog/Mainline/Blizzard_CombatLog.lua:3429>
[string "=[C]"]: in function `SetItemRef'
[string "@Interface/AddOns/Blizzard_ChatFrameBase/Mainline/ChatFrame.lua"]:4226: in function `ChatFrame_OnHyperlinkShow'
[string "*ChatFrame.xml:22_OnHyperlinkClick"]:1: in function <[string "*ChatFrame.xml:22_OnHyperlinkClick"]:1>

Locals: tooltip = ItemRefTooltip {
 BottomOverlay = Texture {
 }
 NineSlice = Frame {
 }
 textLeft1Font = "GameTooltipHeaderText"
 hasMoney = 1
 textRight2Font = "GameTooltipText"
 TopOverlay = Texture {
 }
 TextLeft1 = ItemRefTooltipTextLeft1 {
 }
 StatusBar = ItemRefTooltipStatusBar {
 }
 numMoneyFrames = 1
 supportsDataRefresh = true
 waitingForData = false
 shouldRefreshData = false
 shoppingTooltips = <table> {
 }
 TextRight1 = ItemRefTooltipTextRight1 {
 }
 textRight1Font = "GameTooltipHeaderText"
 layoutType = "TooltipDefaultLayout"
 textLeft2Font = "GameTooltipText"
 TextRight2 = ItemRefTooltipTextRight2 {
 }
 TextLeft2 = ItemRefTooltipTextLeft2 {
 }
 CloseButton = Button {
 }
}
id = nil
kind = "spell"
silverwind commented 3 months ago

That should be fixable, will have a look later.