From 7bcfa59600a1a1db7a065d303b31fdfe19ace4cb Mon Sep 17 00:00:00 2001 From: Yuxiao Mao Date: Wed, 29 Jan 2025 14:10:48 +0100 Subject: [PATCH] RemoteConsole: prevent null access on connections --- hrt/impl/RemoteConsole.hx | 1 + 1 file changed, 1 insertion(+) diff --git a/hrt/impl/RemoteConsole.hx b/hrt/impl/RemoteConsole.hx index a5857238..8a63adf6 100644 --- a/hrt/impl/RemoteConsole.hx +++ b/hrt/impl/RemoteConsole.hx @@ -27,6 +27,7 @@ class RemoteConsole { public function new( ?port : Int, ?host : String ) { this.host = host ?? DEFAULT_HOST; this.port = port ?? DEFAULT_PORT; + this.connections = []; } public function startServer( ?onClient : RemoteConsoleConnection->Void ) {