Lua error on character without a Barracks
b-morgan opened this issue ยท 2 comments
This character does not have a Barracks (and therefore no bodyguard)
Date: 2014-12-31 08:31:08
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\BodyguardHealth\frame.lua line 230:
attempt to index upvalue 'frame' (a nil value)
Debug:
BodyguardHealth\frame.lua:230: SetMenu()
BodyguardHealth\main.lua:170: ?()
BodyguardHealth\main.lua:221:
BodyguardHealth\main.lua:219
Locals:
self = <table> {
Unlock = <function> defined @Interface\AddOns\BodyguardHealth\frame.lua:272
EnableMenu = <function> defined @Interface\AddOns\BodyguardHealth\frame.lua:241
UpdateHealthBar = <function> defined @Interface\AddOns\BodyguardHealth\frame.lua:179
SetMenu = <function> defined @Interface\AddOns\BodyguardHealth\frame.lua:228
ResetSettings = <function> defined @Interface\AddOns\BodyguardHealth\frame.lua:83
UpdateSettings = <function> defined @Interface\AddOns\BodyguardHealth\frame.lua:93
IsShowing = <function> defined @Interface\AddOns\BodyguardHealth\frame.lua:264
Show = <function> defined @Interface\AddOns\BodyguardHealth\frame.lua:249
IsLocked = <function> defined @Interface\AddOns\BodyguardHealth\frame.lua:268
UpdateName = <function> defined @Interface\AddOns\BodyguardHealth\frame.lua:155
Lock = <function> defined @Interface\AddOns\BodyguardHealth\frame.lua:290
UpdateStatus = <function> defined @Interface\AddOns\BodyguardHealth\frame.lua:160
SaveSettings = <function> defined @Interface\AddOns\BodyguardHealth\frame.lua:139
DisableMenu = <function> defined @Interface\AddOns\BodyguardHealth\frame.lua:245
Hide = <function> defined @Interface\AddOns\BodyguardHealth\frame.lua:257
}
enabled = true
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index upvalue 'frame' (a nil value)"
frame = nil
T = <table> {
LSM = <table> {
}
Log = <function> defined @Interface\AddOns\BodyguardHealth\main.lua:231
ADDON_LOADED = <function> defined @Interface\AddOns\BodyguardHealth\main.lua:112
ZONE_CHANGED_NEW_AREA = <function> defined @Interface\AddOns\BodyguardHealth\main.lua:195
Enable = <function> defined @Interface\AddOns\BodyguardHealth\main.lua:207
PLAYER_ENTERING_WORLD = <function> defined @Interface\AddOns\BodyguardHealth\main.lua:178
BodyguardFrame = <table> {
}
Dropdown = <table> {
}
DB = <table> {
}
LBG = <table> {
}
Frame = <unnamed> {
}
Options = <table> {
}
Disable = <function> defined @Interface\AddOns\BodyguardHealth\main.lua:212
}
AddOns:
Should be fixed in latest alpha now (also, post code and other large text blocks inside code tags, makes it more readable, I edited your comment to add code tags).
Could you verify the fix works and I'll tag it for release :)
```
<code here>
```