Ensure dialogue is not null before passing to handler in runtime-host.ts
This commit is contained in:
@@ -577,7 +577,7 @@ export class RuntimeHost {
|
||||
) {
|
||||
this.runtimeDialogueHandler = handler;
|
||||
|
||||
if (handler !== null) {
|
||||
if (handler !== null && this.currentDialogue !== null) {
|
||||
handler(this.currentDialogue);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user