jimmy58663 / Craftility

WoW Addon for crafting utility.
MIT License
2 stars 3 forks source link

Errors when looking at someone else's profession #14

Closed jimmy58663 closed 1 year ago

jimmy58663 commented 1 year ago

Hello. I'm getting a lot of errors when attempting to view a guildmate's profession through the guild roster. I'm not looking to sim anything with their profession, just wanting to see what they can make. Craftility seems to try to hook onto that window as well and puts out errors every time I click on a recipe there.

61x Craftility/Modules/CraftilitySim.lua:566: attempt to index local 'operationInfo' (a nil value) [string "@Craftility/Modules/CraftilitySim.lua"]:566: in function <Craftility/Modules/CraftilitySim.lua:560>

string "=[C]": in function `UpdateDetailsStats' [string "@Craftility/Modules/CraftilitySim.lua"]:147: in function <Craftility/Modules/CraftilitySim.lua:127>

string "=[C]": in function Init' [string "@Blizzard_Professions/Blizzard_ProfessionsCrafting.lua"]:287: in functionSelectRecipe' [string "@Blizzard_Professions/Blizzard_ProfessionsCrafting.lua"]:276: in function <...lizzard_Professions/Blizzard_ProfessionsCrafting.lua:267>

[string "@SharedXML/CallbackRegistry.lua"]:143: in function <SharedXML/CallbackRegistry.lua:142>

[string "@SharedXML/CallbackRegistry.lua"]:146: in function `TriggerEvent' [string "@Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeList.lua"]:125: in function <...fessionsTemplates/Blizzard_ProfessionsRecipeList.lua:112>

[string "@SharedXML/CallbackRegistry.lua"]:143: in function <SharedXML/CallbackRegistry.lua:142>

[string "@SharedXML/CallbackRegistry.lua"]:146: in function TriggerEvent' [string "@SharedXML/Scroll/ScrollUtil.lua"]:383: in functionSetElementDataSelected_Internal' [string "@SharedXML/Scroll/ScrollUtil.lua"]:348: in function SelectElementData' [string "@SharedXML/Scroll/ScrollUtil.lua"]:388: in functionSelect' [string "@Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeList.lua"]:58: in function <...fessionsTemplates/Blizzard_ProfessionsRecipeList.lua:46>

Locals: self = Craftility_SchematicForm { 0 = elapsed = 0 OnHyperlinkLeave = defined @Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeSchematicForm.lua:1297 Stars = Frame { } UpdateCooldown = defined @Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeSchematicForm.lua:441 GetRecipeInfo = defined @Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeSchematicForm.lua:1254 UpdateRecraftSlot = defined @Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeSchematicForm.lua:1202 extraSlotFrames =

{ } OnShow = defined @Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeSchematicForm.lua:185 currentRecipeInfo =
{ } OnHyperlinkEnter = defined @Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeSchematicForm.lua:1285 recipeSchematic =
{ } recraftSlot = Frame { } OutputIcon = Button { } selectedRecipeLevels =
{ } GetSlots = defined @Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeSchematicForm.lua:1269 UpdateDetailsStats = defined =[C]:-1 Update = defined @Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeSchematicForm.lua:233 GetCallbacksByEvent = defined @SharedXML/CallbackRegistry.lua:54 UpdateRecipeDescription = defined @Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeSchematicForm.lua:1227 UnregisterEvents = defined @SharedXML/CallbackRegistry.lua:165 RecipeLevelBar = StatusBar { } loader =
{ } GetCurrentRecipeLevel = defined @Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeSchematicForm.lua:1281 GetCallbackTable = defined @SharedXML/CallbackRegistry.lua:50 FavoriteButton = CheckButton { } statsChangedHandler = defined @SharedXML/FunctionUtil.lua:89 Event =
{ } recipeInfoFrames =
{ } QualityDialog = Frame { } OutputSubText = FontString { } RecraftingDescription = FontString { } RecipeLevelSelector = Button { } reagentSlots =
{ } SetSelectedRecipeLevel = defined @Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeSchematicForm.lua:1242 SetOutputSubText = defined @Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeSchematicForm.lua:1258 GetTransaction = defined @Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeSchematicForm.lua:1250 reagentSlotPool =
{ } GetRecipeOperationInfo = defined @Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeSchematicForm.lua:252 GenerateCallbackEvents = defined @SharedXML/CallbackRegistry.lua:181 TriggerEvent = defined @SharedXML/CallbackRegistry.lua:124 Details = Frame { } GetSlotsByReagentType = defined @Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeSchematicForm.lua:1277 RegisterCallback = defined @SharedXML/CallbackRegistry.lua:75 SetUndefinedEventsAllowed = defined @SharedXML/CallbackRegistry.lua:42 UnregisterCallback = defined @SharedXML/CallbackRegistry.lua:150 AllocateBestQualityCheckBox = CheckButton { } RegisterCallbackWithHandle = defined @SharedXML/CallbackRegistry.lua:119 Cooldown = FontString { } Description = FontString { } callbackTables =
{ } transaction =
{ } GetCallbackTables = defined @SharedXML/CallbackRegistry.lua:46 ClearTransaction = defined @Blizzard_ProfessionsTemplates/Blizzard_ProfessionsRecipeSchematicForm.lua:268 RequiredTools = FontString { } OnAllocationsChanged = defined @Blizzard_ProfessionsTemplates

jimmy58663 commented 1 year ago

Added an early return for HookInit if the ProfessionsFrame is not in local crafting mode.