Missing Error Handling
Posted: Wed Mar 10, 2021 11:16 am
Hey again!
I just wanted to share that it seems like there is a null check missing that perhaps you would want to add.
In the QuestGenerator, line 109 is checking if the quest is abandonable. But if the QuestGenerator was not able to generate the plan, then the quest variable will still be null.
In my case, it failed to generate the plan because none of the entities had an UrgencyFunction assigned to it.
I hope you find this helpful.
I just wanted to share that it seems like there is a null check missing that perhaps you would want to add.
In the QuestGenerator, line 109 is checking if the quest is abandonable. But if the QuestGenerator was not able to generate the plan, then the quest variable will still be null.
In my case, it failed to generate the plan because none of the entities had an UrgencyFunction assigned to it.
I hope you find this helpful.