From c81956ec487af0e88d0519c5541cd8fe8a38104b Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Mon, 28 Feb 2022 17:36:18 +0100 Subject: [PATCH] [MIRROR] Add null check for status display circuitboard in case somehow is free of its prison [MDB IGNORE] (#11770) * Add null check for status display circuit (#65164) * Add null check for status display circuitboard in case somehow is free of its prison Co-authored-by: Tastyfish --- code/game/machinery/status_display.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/game/machinery/status_display.dm b/code/game/machinery/status_display.dm index 21ce15f8824..176041dc2a0 100644 --- a/code/game/machinery/status_display.dm +++ b/code/game/machinery/status_display.dm @@ -562,6 +562,9 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/status_display/ai, 32) // Just use command handling built into status display. // The option inputs thankfully sanitize command and picture for us. + if(!connected_display) + return + var/command_value = command_map[command.value] var/datum/signal/status_signal = new(list("command" = command_value)) switch(command_value)