From 563211af6f0698d6f973b15cc796c84f5a444c80 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Mon, 29 May 2023 21:09:39 +0200 Subject: [PATCH] fixed missing null check in ps handle --- src/kernel/ps/ProcessHandle.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kernel/ps/ProcessHandle.hx b/src/kernel/ps/ProcessHandle.hx index fa21511..3a1e320 100644 --- a/src/kernel/ps/ProcessHandle.hx +++ b/src/kernel/ps/ProcessHandle.hx @@ -49,7 +49,9 @@ class ProcessHandle { } public function write(message: String): Void { - this.config.onWrite.invoke(message); + if (this.config.onWrite != null){ + this.config.onWrite.invoke(message); + } } public function writeLine(message: String): Void {