View Bug Report
Library fails to update from r2 to r3
Bug #: 835
File: LibAddonMenu-2.0
Date: 06/11/14 08:25 PM
By: Garkin
Status: Fixed
Code:
Error: 1 / 1   Time: 04:20:51   Gametime: 42.653   Count: 1
Reason: attempt to index a nil value
At: EnglishPOINames/Libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:256
Stack:
EnglishPOINames/Libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:256: function CreateAddonList
EnglishPOINames/Libs/LibAddonMenu-2.0/LibAddonMenu-2.0.lua:294: (main chunk)
I believe you will need to use something like this:
Lua Code:
  1. if not LAMAddonPanelsMenu then  --check if an earlier loaded copy of LAM created it already
  2.    list = wm:CreateControlFromVirtual("LAMAddonPanelsMenu", optionsWindow, "ZO_ScrollContainer")
  3. else
  4.    list = wm:GetControlByName("LAMAddonPanelsMenu")
  5. end

RSS 2.0 Feed for Bug CommentsNotes Sort Options
By: Seerah - 06/11/14 08:53 PM
Omg, I thought I tested it and got it to work. But you're right - I'm an idiot... Shouldn't have rushed to get the fix out before writing a couple of tests... ><
By: Seerah - 06/11/14 08:53 PM
PS- you can just do list = LAMAddonPanelsMenu