From ad4e8d5cebca98a0c7866f0db192277c54bcb5da Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Thu, 8 Jun 2017 12:17:18 -0400 Subject: [PATCH] Sanity check open --- code/datums/browser.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/datums/browser.dm b/code/datums/browser.dm index 17b1060e7bce..686757077c2a 100644 --- a/code/datums/browser.dm +++ b/code/datums/browser.dm @@ -92,6 +92,10 @@ "} /datum/browser/proc/open(use_onclose = 1) + if(isnull(window_id)) //null check because this can potentially nuke goonchat + WARNING("Browser [title] tried to open with a null ID") + to_chat(user, "The [title] browser you tried to open failed a sanity check! Please report this on github!" + return var/window_size = "" if (width && height) window_size = "size=[width]x[height];"