tekkub/GreedBeacon — Issue #7: Error When Changing ChatFrame
Author: Teliri
Created: 2012-02-11 21:54:42+00:00
State: open

I get an error when I change chatframes, after which it shows the new chatframe as selected, but still only puts the information into chatframe1.

The error is:
Message: Interface\FrameXML\UIDropDownMenu.lua:541: attempt to index local 'icon' (a nil value)
Time: Sat Feb 11 13:49:51 2012
Count: 1
Stack: Interface\FrameXML\UIDropDownMenu.lua:541: in function `UIDropDownMenu_Refresh'
Interface\FrameXML\UIDropDownMenu.lua:631: in function `UIDropDownMenu_SetSelectedValue'
Interface\AddOns\GreedBeacon\Config.lua:20: in function `func'
Interface\FrameXML\UIDropDownMenu.lua:706: in function `UIDropDownMenuButton_OnClick'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>

Locals: frame = tekKonfigDropdown11685.353 {
0 =
selectedValue = "ChatFrame4"
tiptext = "Select which chat frame to output to."
initialize = defined @Interface\AddOns\GreedBeacon\Config.lua:24
}
useValue = nil
dropdownLevel = 1
button = DropDownList1Button4 {
0 =
checked = false
value = "ChatFrame4"
func = defined @Interface\AddOns\GreedBeacon\Config.lua:19
}
checked = 1
checkImage = DropDownList1Button4Check {
0 =
}
uncheckImage = DropDownList1Button4UnCheck {
0 =
}
normalText = DropDownList1Button3NormalText {
0 =
}
width = 102.00001144409
maxWidth = 102.00001144409
somethingChecked = true
listFrame = DropDownList1 {
0 =
dropdown = tekKonfigDropdown11685.353 {
}
isCounting = 1
showTimer = 2
numButtons = 7
maxWidth = 103.00001525879
}
(for index) = 4
(for limit) = 32
(for step) = 1
i = 4
icon = nil
(*temporary) = defined @Interface\FrameXML\UIDropDownMenu.lua:993
(*temporary) = nil
(*temporary) = "ChatFrame4"
(*temporary) = tekKonfigDropdown11685.353Text {
0 =
}
(*temporary) = defined =[C]:-1
(*temporary) = "attempt to index local 'icon' (a nil value)"