fixed missing null check in ps handle

This commit is contained in:
Djeeberjr 2023-05-29 21:09:39 +02:00
parent 5985b0c8be
commit 563211af6f

View File

@ -49,8 +49,10 @@ class ProcessHandle {
} }
public function write(message: String): Void { public function write(message: String): Void {
if (this.config.onWrite != null){
this.config.onWrite.invoke(message); this.config.onWrite.invoke(message);
} }
}
public function writeLine(message: String): Void { public function writeLine(message: String): Void {
this.write(message + "\n"); this.write(message + "\n");