ink
ink copied to clipboard
Adding null check to value pop
When an external function opens a flow, the return from that function is never acknowledged and the function is called a second time when returning to the original flow, however the arguments are all NullValues which causes a nullref. This fixes the nullref, albeit more work will be needed to address the double call of a function that opens a flow.
Noting that the alternative of creating a call stack to call after the function block is done also doesn't work, since the story will continue with the next paragraph, resulting in a rather weird requirement of calling a function just before the last block to be shown.