View Bug Report
user:/AddOns/CraftResearchTimer/lua.lua:386:attempt to index a nil value
Bug #: 628
File: Craft Research Timer
Date: 05/09/14 12:24 PM
By: Gluesticky
Status: Confirmed (Working on Fix)
user:/AddOns/CraftResearchTimer/lua.lua:386:attempt to index a nil value
stack traceback:
user:/AddOns/CraftResearchTimer/lua/Core.lua:386:in function 'CRT_ALERT_Update'
user:/AddOns/CraftResearchTimer/lua/CraftResearchTimer.lua:216in function 'CRT_Update'
5049221232296909379:3in function '(main chunk)'

-----
Solution
-----
A more reliable way is needed to check if init has completed before running the update functions. This is how I fixed it:

--
line ~112 Before:
function CRT_Init(eventCode, addOnName)

Add:
CRT_Init_Done = false
--

line ~208 After:
CRT_CRAFT_Create()

Add:
CRT_Init_Done = true

line ~212 After:
function CRT_Update()

Add:
if not CRT_Init_Done then return; end