Attempt to index a nil value in function 'IsDoable'
kuletco opened this issue · 3 comments
Bug description
1x Questie\Modules\QuestieQuest.lua:1180: attempt to index a nil value
Questie\Modules\QuestieQuest.lua:1180: in function IsDoable' Questie\Modules\QuestieQuest.lua:1240: in function
CalculateAvailableQuests'
...rfaceQuestie\Modules\QuestieEventHandler.lua:88: in function <...rfaceQuestie\Modules\QuestieEventHandler.lua:83>
Locals:
self =
1 = "Questie"
2 =
}
IsDoable = defined @Questie\Modules\QuestieQuest.lua:1146
DrawAvailableQuest = defined @Questie\Modules\QuestieQuest.lua:1025
CheckExclusivity = defined @Questie\Modules\QuestieQuest.lua:1218
GetLeaderBoardDetails = defined @Questie\Modules\QuestieQuest.lua:995
}
questObject =
Description = "和克兰诺克·马克雷德谈一谈。"
startedBy =
}
ObjectiveData =
}
HiddenObjectiveData =
}
NextQuestInChain = 1719
RequiredRaces = 0
Sort = 81
Ends =
}
questFlags = 8
Level = 30
ObjectiveText =
}
nextQuestInChain = 1719
requiredRaces = 0
RequiredClasses = 1
Finisher =
}
GetColoredQuestName = defined @Questie\Database\QuestieDB.lua:139
Id = 1718
MinLevel = 30
requiredClasses = 1
questLevel = 30
finishedBy =
}
Starts =
}
Name = "岛民"
objectivesText =
}
requiredLevel = 30
name = "The Islander"
zoneOrSort = -81
objectives =
}
}
allFinished = true
hasValidNPC = false
(for generator) = defined =[C]:-1
(for state) =
1 =
}
}
(for control) = 1
_ = 1
id =
1 = 3041
2 = 3354
3 = 4595
4 = 5113
5 = 5479
}
(*temporary) = nil
(*temporary) =
1 = "Questie"
2 =
}
FactionGroup = "Alliance"
_NPCCache =
}
GetQuestsByName = defined @Questie\Database\QuestieDB.lua:477
_ZoneCache =
}
questKeys =
}
_GetSpecialNPC = defined @Questie\Database\QuestieDB.lua:395
Levenshtein = defined @Questie\Database\QuestieDB.lua:573
itemKeys =
}
npcKeys =
}
GetQuestsByZoneId = defined @Questie\Database\QuestieDB.lua:520
npcData =
}
objectData =
}
objectKeys =
}
deleteClasses = defined @Questie\Database\QuestieDB.lua:656
itemData =
}
deleteGatheringNodes = defined @Questie\Database\QuestieDB.lua:611
questData =
}
GetNPC = defined @Questie\Database\QuestieDB.lua:428
GetNPCsByName = defined @Questie\Database\QuestieDB.lua:500
ItemLookup = defined @Questie\Database\QuestieDB.lua:67
GetObject = defined @Questie\Database\QuestieDB.lua:76
_ObjectCache =
}
Initialize = defined @Questie\Database\QuestieDB.lua:54
GetQuest = defined @Questie\Database\QuestieDB.lua:143
_ItemCache =
}
GetItem = defined @Questie\Database\QuestieDB.lua:108
_QuestCache =
}
}
(*temporary) =
1 = 3041
2 = 3354
3 = 4595
4 = 5113
5 = 5479
}
(*temporary) = "attempt to index a nil value"
Screenshots
Questie version
Questie-master
I made a bad correction and therefore a table was used instead of a number. If we would add a nil
check it would be harder to recognize such issues. Thanks for your report though :)