Help tracking down null Object reference in Lua exception
Posted: Wed May 31, 2023 9:27 pm
[Unity 2021.3.26f1 - DS v2.2.37]
Hi Tony!
We write our conversations and a lot of our logic in Articy:Draft 2 and often have situations like the following:
We often go back to a hub that checks which dialogue options to show or hide according to some variables.
With conversations like this one, I've suddenly started getting these Lua exceptions, and I can't track what Object is missing there, exactly.
What confuses me more is that the variable checks and variable updates seem to be working properly throughout the conversation, regardless of the exception thrown.
The full stack of the error is here.
I tried debugging step by step but I couldn't find any answer. The only thing I noticed, but it's just a wild guess, is that the variable check includes additional whitespace between the variables and the keywords "and" and "not" ('return Variable["haralamb.asked_inn"] and not Variable["haralamb.asked_home"]')
I thought it was something related to the changes I had done to my SubtitlePanel but even commenting out the code nothing changes.
Do you have any suggestions?
Thanks a lot, as always!
Hi Tony!
We write our conversations and a lot of our logic in Articy:Draft 2 and often have situations like the following:
We often go back to a hub that checks which dialogue options to show or hide according to some variables.
With conversations like this one, I've suddenly started getting these Lua exceptions, and I can't track what Object is missing there, exactly.
What confuses me more is that the variable checks and variable updates seem to be working properly throughout the conversation, regardless of the exception thrown.
The full stack of the error is here.
I tried debugging step by step but I couldn't find any answer. The only thing I noticed, but it's just a wild guess, is that the variable check includes additional whitespace between the variables and the keywords "and" and "not" ('return Variable["haralamb.asked_inn"] and not Variable["haralamb.asked_home"]')
I thought it was something related to the changes I had done to my SubtitlePanel but even commenting out the code nothing changes.
Do you have any suggestions?
Thanks a lot, as always!