Skip to content

Commit 660b890

Browse files
authored
Merge pull request #89 from Merryfett/fix-nil-profconfig-recipes
Fix nil reference error in PopulateProfessionNode
2 parents f0c3fb6 + 5221c35 commit 660b890

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Config/ConfigPage.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,13 @@ local function MakeProfessionNodeFactory(root)
323323
-- for the user to see instead of freezing the screen.
324324
local perFrame = existingRecipeIDs and 5 or 10000000
325325

326+
if not profConfig.recipes then
327+
if onFinished then
328+
onFinished()
329+
end
330+
return
331+
end
332+
326333
CraftScan.TimeSlice(profConfig.recipes, perFrame, function(recipeID, recipeConfig)
327334
if not existingRecipeIDs or not existingRecipeIDs[recipeID] then
328335
local parentNode = GetRecipeParentNode(char, profID, profConfig, recipeConfig)

0 commit comments

Comments
 (0)