Ensure dialogue is not null before passing to handler in runtime-host.ts

This commit is contained in:
2026-04-14 20:35:35 +02:00
parent 9a80f91094
commit d5f5e1cb77

View File

@@ -577,7 +577,7 @@ export class RuntimeHost {
) {
this.runtimeDialogueHandler = handler;
if (handler !== null) {
if (handler !== null && this.currentDialogue !== null) {
handler(this.currentDialogue);
}
}