Peterodox / YUI-Dialogue

World of Warcraft Dialogue UI Add-On
https://www.curseforge.com/wow/addons/dialogueui
23 stars 7 forks source link

attempt to index local 'firstObject' (a nil value) #41

Closed karaktaka closed 2 weeks ago

karaktaka commented 2 months ago

Currently getting a Lua Error with version 0.4.1.

1x DialogueUI/Code/UI.lua:1696: attempt to index local 'firstObject' (a nil value)
[string "@DialogueUI/Code/UI.lua"]:1696: in function `HandleQuestGreeting'
[string "@DialogueUI/Code/UI.lua"]:2179: in function <DialogueUI/Code/UI.lua:2163>

Locals:
self = DUIQuestFrame {
 nodeignore = true
 WarbandCompleteAlert = Frame {
 }
 GamePadFocusIndicator = Frame {
 }
 fromOffsetX = 413
 ExitButton = Button {
 }
 BackgroundDecor = Texture {
 }
 AcceptButtonLock = Frame {
 }
 keepGossipHistory = false
 fontStringPool = <table> {
 }
 Vignette = Frame {
 }
 contentHeight = 104.999969
 requireGossipConfirm = false
 frameWidth = 444
 handler = "HandleQuestGreeting"
 halfFrameWidth = 189
 InputBox = Frame {
 }
 RewardSelection = Frame {
 }
 gamepadMaxIndex = 0
 ContentFrame = Frame {
 }
 textHistory = <table> {
 }
 t = 0.205000
 scrollViewHeight = 394.000061
 iconFramePool = <table> {
 }
 questTypeFramePool = <table> {
 }
 fromHeight = 261
 numAvailableQuests = 2
 contentWidth = 444
 smallItemButtonPool = <table> {
 }
 hasInteraction = true
 Parchments = <table> {
 }
 AcceptButton = Button {
 }
 quarterFrameWidth = 91
 CopyTextButton = Button {
 }
 textBackgroundPool = <table> {
 }
 frameOffsetX = 341
 activeQuestButtons = <table> {
 }
 gamepadObjects = <table> {
 }
 hotkeyFramePool = <table> {
 }
 optionButtonPool = <table> {
 }
 hasActiveGossipQuests = false
 itemButtonPool = <table> {
 }
 scrollFrameBaseHeight = 394.000061
 frameHeight = 522
 ScrollFrame = ScrollFrame {
 }
 BackgroundFrame = Frame {
 }
 FrontFrame = Frame {
 }
 ButtonHighlight = Frame {
 }
}
offsetY = -14
firstObject = nil
lastObject = nil
geetingText = nil
questIndex = 0
quests = <table> {
}
numAvailableQuests = 0
numActiveQuests = 0
lastQuestComplete = nil
lastQuestAvailable = nil
hotkeyIndex = 0
hotkey = nil
button = nil
GoodbyeButton = Button {
 pushOffsetY = 0
 offset = 0
 HotkeyFrame = Frame {
 }
 hasHotkey = true
 artID = 4
 baseWidth = 189
 defaultNameWidth = 156
 Icon = Texture {
 }
 type = "goodbye"
 showIcon = false
 id = 0
 Background = Texture {
 }
 Name = FontString {
 }
 owner = DUIQuestFrame {
 }
 Content = Frame {
 }
}
(*temporary) = nil
(*temporary) = Button {
 pushOffsetY = 0
 offset = 0
 HotkeyFrame = Frame {
 }
 hasHotkey = true
 artID = 4
 baseWidth = 189
 defaultNameWidth = 156
 Icon = Texture {
 }
 type = "goodbye"
 showIcon = false
 id = 0
 Background = Texture {
 }
 Name = FontString {
 }
 owner = DUIQuestFrame {
 }
 Content = Frame {
 }
}
(*temporary) = 4
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'firstObject' (a nil value)"
KeyboardControl = Frame {
 parent = DUIQuestFrame {
 }
 keyActions = <table> {
 }
 combatFrame = Frame {
 }
}
PARAGRAPH_BUTTON_SPACING = 20
Peterodox commented 2 weeks ago

This issue could happen when the quest-giver has nothing to say. It's been fixed.