See https://legacy.curseforge.com/wow/addons/altoholic/issues/1657
wowgamer59 reports:
If you have a toon that learns a new profession and then open the professions so that Altholic will record it, Altholic throws this error. And it will keep throwing it if you re-open the professions until you log out and log back in. Once you do that, then everything is fine.
I also tried it where after I learned a new profession, I didn't open the professions page but just logged out and then back in. Then I opened the professions page and everything was fine. So it only seems to happen under that one condition.
8x DataStore_Crafts/DataStore_Crafts_Retail.lua:272: attempt to index local 'profession' (a nil value)
[DataStore_Crafts/DataStore_Crafts_Retail.lua]:272: in function <DataStore_Crafts/DataStore_Crafts_Retail.lua:270>
[DataStore_Crafts/DataStore_Crafts_Retail.lua]:323: in function <DataStore_Crafts/DataStore_Crafts_Retail.lua:309>
[DataStore_Crafts/DataStore_Crafts_Retail.lua]:512: in function 'callback'
[AddonFactory/Core/Addon.lua]:17: in function <AddonFactory/Core/Addon.lua:13>
Locals:
profession = nil
professionIndex = nil
See https://legacy.curseforge.com/wow/addons/altoholic/issues/1657
wowgamer59 reports: